| java.lang.Object org.eclipse.jdt.internal.compiler.lookup.Binding org.eclipse.jdt.internal.compiler.lookup.TypeBinding org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding
All known Subclasses: org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding, org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding, org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding, org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding, org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding, org.eclipse.jdt.internal.compiler.lookup.WildcardBinding, org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding,
Method Summary | |
public FieldBinding[] | availableFields() | public MethodBinding[] | availableMethods() | public static FieldBinding | binarySearch(char[] name, FieldBinding[] sortedFields) | public static long | binarySearch(char[] selector, MethodBinding[] sortedMethods) Returns a combined range value representing: (start + (end<<32)), where start is the index of the first matching method
(remember methods are sorted alphabetically on selectors), and end is the index of last contiguous methods with same
selector. | public boolean | canBeInstantiated() | final public boolean | canBeSeenBy(PackageBinding invocationPackage) | final public boolean | canBeSeenBy(ReferenceBinding receiverType, ReferenceBinding invocationType) | final public boolean | canBeSeenBy(Scope scope) | public ReferenceBinding | closestMatch() In case of problems, returns the closest match found. | static int | compare(char[] str1, char[] str2, int len1, int len2) Compares two strings lexicographically. | public char[] | computeGenericTypeSignature(TypeVariableBinding[] typeVariables) | public void | computeId() | public char[] | computeUniqueKey(boolean isLeaf) | public char[] | constantPoolName() | public String | debugName() | final public int | depth() | public boolean | detectAnnotationCycle() | final public ReferenceBinding | enclosingTypeAt(int relativeDepth) | public int | enumConstantCount() | public int | fieldCount() | public FieldBinding[] | fields() | final public int | getAccessFlags() | public long | getAnnotationTagBits() | public AnnotationBinding[] | getAnnotations() | public MethodBinding | getExactConstructor(TypeBinding[] argumentTypes) | public MethodBinding | getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) | public FieldBinding | getField(char[] fieldName, boolean needResolve) | public char[] | getFileName() | public ReferenceBinding | getMemberType(char[] typeName) | public MethodBinding[] | getMethods(char[] selector) | public PackageBinding | getPackage() | public TypeVariableBinding | getTypeVariable(char[] variableName) | public boolean | hasIncompatibleSuperType(ReferenceBinding otherType) Returns true if the two types have an incompatible common supertype,
e.g. | public boolean | hasMemberTypes() | final public boolean | hasRestrictedAccess() | public int | hashCode() | public boolean | implementsInterface(ReferenceBinding anInterface, boolean searchHierarchy) Answer true if the receiver implements anInterface or is identical to anInterface. | boolean | implementsMethod(MethodBinding method) | final public boolean | isAbstract() | public boolean | isAnnotationType() | final public boolean | isBinaryBinding() | public boolean | isClass() | public boolean | isCompatibleWith(TypeBinding otherType) | final public boolean | isDefault() | final public boolean | isDeprecated() | public boolean | isEnum() | final public boolean | isFinal() | public boolean | isHierarchyBeingConnected() | public boolean | isInterface() | final public boolean | isPrivate() | final public boolean | isProtected() | final public boolean | isPublic() | final public boolean | isStatic() | final public boolean | isStrictfp() | public boolean | isSuperclassOf(ReferenceBinding otherType) | public boolean | isThrowable() | public boolean | isUncheckedException(boolean includeSupertype) JLS 11.5 ensures that Throwable, Exception, RuntimeException and Error are directly connected.
(Throwable<- Exception <- RumtimeException, Throwable <- Error). | final public boolean | isUsed() | final public boolean | isViewedAsDeprecated() | public ReferenceBinding[] | memberTypes() | public MethodBinding[] | methods() | final public ReferenceBinding | outermostEnclosingType() | public char[] | qualifiedSourceName() Answer the source name for the type. | public char[] | readableName() | public AnnotationHolder | retrieveAnnotationHolder(Binding binding, boolean forceInitialization) | AnnotationBinding[] | retrieveAnnotations(Binding binding) | public void | setAnnotations(AnnotationBinding[] annotations) | public char[] | shortReadableName() | public char[] | signature() | public static void | sortFields(FieldBinding[] sortedFields, int left, int right) | public static void | sortMethods(MethodBinding[] sortedMethods, int left, int right) | public char[] | sourceName() | void | storeAnnotationHolder(Binding binding, AnnotationHolder holder) | void | storeAnnotations(Binding binding, AnnotationBinding[] annotations) | SimpleLookupTable | storedAnnotations(boolean forceInitialize) | public ReferenceBinding[] | superInterfaces() | public ReferenceBinding | superclass() | public ReferenceBinding[] | syntheticEnclosingInstanceTypes() | public SyntheticArgumentBinding[] | syntheticOuterLocalVariables() | MethodBinding[] | unResolvedMethods() |
compoundName | public char[][] compoundName(Code) | | |
constantPoolName | char[] constantPoolName(Code) | | |
fileName | char[] fileName(Code) | | |
modifiers | public int modifiers(Code) | | |
signature | char[] signature(Code) | | |
sourceName | public char[] sourceName(Code) | | |
availableFields | public FieldBinding[] availableFields()(Code) | | Return the array of resolvable fields (resilience)
|
availableMethods | public MethodBinding[] availableMethods()(Code) | | Return the array of resolvable methods (resilience)
|
binarySearch | public static long binarySearch(char[] selector, MethodBinding[] sortedMethods)(Code) | | Returns a combined range value representing: (start + (end<<32)), where start is the index of the first matching method
(remember methods are sorted alphabetically on selectors), and end is the index of last contiguous methods with same
selector.
-1 means no method got found
Parameters: selector - Parameters: sortedMethods - (start + (end<<32)) or -1 if no method found |
canBeInstantiated | public boolean canBeInstantiated()(Code) | | |
canBeSeenBy | final public boolean canBeSeenBy(Scope scope)(Code) | | |
closestMatch | public ReferenceBinding closestMatch()(Code) | | In case of problems, returns the closest match found. It may not be perfect match, but the
result of a best effort to improve fault-tolerance.
|
compare | static int compare(char[] str1, char[] str2, int len1, int len2)(Code) | | Compares two strings lexicographically.
The comparison is based on the Unicode value of each character in
the strings.
the value 0 if the str1 is equal to str2;a value less than 0 if str1is lexicographically less than str2;and a value greater than 0 if str1 islexicographically greater than str2. |
computeId | public void computeId()(Code) | | |
computeUniqueKey | public char[] computeUniqueKey(boolean isLeaf)(Code) | | |
constantPoolName | public char[] constantPoolName()(Code) | | |
depth | final public int depth()(Code) | | |
detectAnnotationCycle | public boolean detectAnnotationCycle()(Code) | | |
enumConstantCount | public int enumConstantCount()(Code) | | |
fieldCount | public int fieldCount()(Code) | | |
getAccessFlags | final public int getAccessFlags()(Code) | | |
hasIncompatibleSuperType | public boolean hasIncompatibleSuperType(ReferenceBinding otherType)(Code) | | Returns true if the two types have an incompatible common supertype,
e.g. List and List
|
hasMemberTypes | public boolean hasMemberTypes()(Code) | | |
hasRestrictedAccess | final public boolean hasRestrictedAccess()(Code) | | |
hashCode | public int hashCode()(Code) | | |
implementsInterface | public boolean implementsInterface(ReferenceBinding anInterface, boolean searchHierarchy)(Code) | | Answer true if the receiver implements anInterface or is identical to anInterface.
If searchHierarchy is true, then also search the receiver's superclasses.
NOTE: Assume that anInterface is an interface.
|
isAbstract | final public boolean isAbstract()(Code) | | Answer true if the receiver is an abstract type
|
isAnnotationType | public boolean isAnnotationType()(Code) | | |
isBinaryBinding | final public boolean isBinaryBinding()(Code) | | |
isClass | public boolean isClass()(Code) | | |
isCompatibleWith | public boolean isCompatibleWith(TypeBinding otherType)(Code) | | Answer true if the receiver type can be assigned to the argument type (right)
In addition to improving performance, caching also ensures there is no infinite regression
since per nature, the compatibility check is recursive through parameterized type arguments (122775)
|
isDefault | final public boolean isDefault()(Code) | | Answer true if the receiver has default visibility
|
isDeprecated | final public boolean isDeprecated()(Code) | | Answer true if the receiver is a deprecated type
|
isEnum | public boolean isEnum()(Code) | | |
isFinal | final public boolean isFinal()(Code) | | Answer true if the receiver is final and cannot be subclassed
|
isHierarchyBeingConnected | public boolean isHierarchyBeingConnected()(Code) | | Returns true if the type hierarchy is being connected
|
isInterface | public boolean isInterface()(Code) | | |
isPrivate | final public boolean isPrivate()(Code) | | Answer true if the receiver has private visibility
|
isProtected | final public boolean isProtected()(Code) | | Answer true if the receiver has protected visibility
|
isPublic | final public boolean isPublic()(Code) | | Answer true if the receiver has public visibility
|
isStatic | final public boolean isStatic()(Code) | | Answer true if the receiver is a static member type (or toplevel)
|
isStrictfp | final public boolean isStrictfp()(Code) | | Answer true if all float operations must adher to IEEE 754 float/double rules
|
isSuperclassOf | public boolean isSuperclassOf(ReferenceBinding otherType)(Code) | | Answer true if the receiver is in the superclass hierarchy of aType
NOTE: Object.isSuperclassOf(Object) -> false
|
isUncheckedException | public boolean isUncheckedException(boolean includeSupertype)(Code) | | JLS 11.5 ensures that Throwable, Exception, RuntimeException and Error are directly connected.
(Throwable<- Exception <- RumtimeException, Throwable <- Error). Thus no need to check #isCompatibleWith
but rather check in type IDs so as to avoid some eager class loading for JCL writers.
When 'includeSupertype' is true, answers true if the given type can be a supertype of some unchecked exception
type (i.e. Throwable or Exception).
See Also: org.eclipse.jdt.internal.compiler.lookup.TypeBinding.isUncheckedException(boolean) |
isUsed | final public boolean isUsed()(Code) | | Answer true if the receiver has private visibility and is used locally
|
isViewedAsDeprecated | final public boolean isViewedAsDeprecated()(Code) | | |
qualifiedSourceName | public char[] qualifiedSourceName()(Code) | | Answer the source name for the type.
In the case of member types, as the qualified name from its top level type.
For example, for a member type N defined inside M & A: "A.M.N".
|
readableName | public char[] readableName()(Code) | | |
shortReadableName | public char[] shortReadableName()(Code) | | |
signature | public char[] signature()(Code) | | |
sortFields | public static void sortFields(FieldBinding[] sortedFields, int left, int right)(Code) | | Sort the field array using a quicksort
|
sortMethods | public static void sortMethods(MethodBinding[] sortedMethods, int left, int right)(Code) | | Sort the field array using a quicksort
|
sourceName | public char[] sourceName()(Code) | | |
|
|