/** * Answer the receiver classfile signature. * Arrays & base types do not distinguish between signature() & constantPoolName(). * NOTE: This method should only be used during/after code gen. */ public char[] signature() { return constantPoolName(); }
/** * Answer the receiver classfile signature. * Arrays & base types do not distinguish between signature() & constantPoolName(). * NOTE: This method should only be used during/after code gen. */ public char[] signature() { return constantPoolName(); }
@Override public int compare(Object o1, Object o2) { TypeBinding typeBinding1 = (TypeBinding) o1; TypeBinding typeBinding2 = (TypeBinding) o2; return CharOperation.compareTo(typeBinding1.constantPoolName(), typeBinding2.constantPoolName()); } });
public int compare(Object o1, Object o2) { TypeBinding typeBinding1 = (TypeBinding) o1; TypeBinding typeBinding2 = (TypeBinding) o2; return CharOperation.compareTo(typeBinding1.constantPoolName(), typeBinding2.constantPoolName()); } });
public int compare(Object o1, Object o2) { TypeBinding binding1 = (TypeBinding) o1; TypeBinding binding2 = (TypeBinding) o2; return CharOperation.compareTo(binding1.constantPoolName(), binding2.constantPoolName()); } });
public int compare(Object o1, Object o2) { TypeBinding typeBinding1 = (TypeBinding) o1; TypeBinding typeBinding2 = (TypeBinding) o2; return CharOperation.compareTo(typeBinding1.constantPoolName(), typeBinding2.constantPoolName()); } });
/** * @see org.eclipse.jdt.internal.compiler.lookup.TypeBinding#constantPoolName() */ public char[] constantPoolName() { return erasure().constantPoolName(); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.TypeBinding#constantPoolName() */ @Override public char[] constantPoolName() { return erasure().constantPoolName(); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.TypeBinding#constantPoolName() */ public char[] constantPoolName() { return erasure().constantPoolName(); }
public char[] constantPoolName() { /* java/lang/Object */ if (this.firstBound != null) { return this.firstBound.constantPoolName(); } return this.superclass.constantPoolName(); // java/lang/Object }
/** * @see org.eclipse.jdt.internal.compiler.lookup.TypeBinding#constantPoolName() */ public char[] constantPoolName() { return erasure().constantPoolName(); }
public int literalIndexForMethod(TypeBinding declaringClass, char[] selector, char[] signature, boolean isInterface) { if ((declaringClass.tagBits & TagBits.ContainsNestedTypeReferences) != 0) { Util.recordNestedType(this.classFile, declaringClass); } return this.literalIndexForMethod(declaringClass.constantPoolName(), selector, signature, isInterface); } public int literalIndexForNameAndType(char[] name, char[] signature) {
public int literalIndexForType(final TypeBinding binding) { TypeBinding typeBinding = binding.leafComponentType(); if ((typeBinding.tagBits & TagBits.ContainsNestedTypeReferences) != 0) { Util.recordNestedType(this.classFile, typeBinding); } return this.literalIndexForType(binding.constantPoolName()); } public int literalIndexForMethod(char[] declaringClass, char[] selector, char[] signature, boolean isInterface) {
public void invokeAutoCloseableClose(TypeBinding resourceType) { // invokevirtual/interface: <resourceType>.close() invoke( resourceType.erasure().isInterface() ? Opcodes.OPC_invokeinterface : Opcodes.OPC_invokevirtual, 1, // receiverAndArgsSize 0, // returnTypeSize resourceType.constantPoolName(), ConstantPool.Close, ConstantPool.CloseSignature); }
public int literalIndexForType(final TypeBinding binding) { TypeBinding typeBinding = binding.leafComponentType(); if ((typeBinding.tagBits & TagBits.ContainsNestedTypeReferences) != 0) { Util.recordNestedType(this.classFile, typeBinding); } return this.literalIndexForType(binding.constantPoolName()); } public int literalIndexForMethod(char[] declaringClass, char[] selector, char[] signature, boolean isInterface) {
public int literalIndexForType(final TypeBinding binding) { TypeBinding typeBinding = binding.leafComponentType(); if ((typeBinding.tagBits & TagBits.ContainsNestedTypeReferences) != 0) { Util.recordNestedType(this.classFile, typeBinding); } return this.literalIndexForType(binding.constantPoolName()); } public int literalIndexForMethod(char[] declaringClass, char[] selector, char[] signature, boolean isInterface) {
public int literalIndexForType(final TypeBinding binding) { TypeBinding typeBinding = binding.leafComponentType(); if ((typeBinding.tagBits & TagBits.ContainsNestedTypeReferences) != 0) { Util.recordNestedType(this.classFile, typeBinding); } return this.literalIndexForType(binding.constantPoolName()); } public int literalIndexForMethod(char[] declaringClass, char[] selector, char[] signature, boolean isInterface) {
public int literalIndexForType(final TypeBinding binding) { TypeBinding typeBinding = binding.leafComponentType(); if ((typeBinding.tagBits & TagBits.ContainsNestedTypeReferences) != 0) { Util.recordNestedType(this.classFile, typeBinding); } return this.literalIndexForType(binding.constantPoolName()); } public int literalIndexForMethod(char[] declaringClass, char[] selector, char[] signature, boolean isInterface) {
public int literalIndexForType(final TypeBinding binding) { TypeBinding typeBinding = binding.leafComponentType(); if ((typeBinding.tagBits & TagBits.ContainsNestedTypeReferences) != 0) { Util.recordNestedType(this.classFile, typeBinding); } return this.literalIndexForType(binding.constantPoolName()); } public int literalIndexForMethod(char[] declaringClass, char[] selector, char[] signature, boolean isInterface) {
public void invokeAutoCloseableClose(TypeBinding resourceType) { // invokevirtual/interface: <resourceType>.close() invoke( resourceType.erasure().isInterface() ? Opcodes.OPC_invokeinterface : Opcodes.OPC_invokevirtual, 1, // receiverAndArgsSize 0, // returnTypeSize resourceType.constantPoolName(), ConstantPool.Close, ConstantPool.CloseSignature); }