Example usage for Java org.eclipse.jdt.internal.compiler.lookup ReferenceBinding fields, constructors, methods, implement or subclass
The text is from its open source code.
null | sourceName |
null | constantPoolName |
null | signature |
FieldBinding[] | availableFields() Return the array of resolvable fields (resilience) |
MethodBinding[] | availableMethods() Return the array of resolvable methods (resilience) |
FieldBinding | binarySearch(char[] name, FieldBinding[] sortedFields) |
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. |
int | binarySearch(char[] sourceName, ReferenceBinding[] sortedMemberTypes) Search the given sourceName in the list of sorted member types. |
boolean | canBeSeenBy(PackageBinding invocationPackage) Answer true if the receiver is visible to the invocationPackage. |
boolean | canBeSeenBy(Scope scope) Answer true if the receiver is visible to the type provided by the scope. |
int | depth() |
FieldBinding[] | fields() |
AnnotationBinding[] | getAnnotations() |
long | getAnnotationTagBits() |
MethodBinding | getExactConstructor(TypeBinding[] argumentTypes) |
MethodBinding | getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) |
FieldBinding | getField(char[] fieldName, boolean needResolve) |
char[] | getFileName() |
ReferenceBinding | getMemberType(char[] typeName) Find the member type with the given simple typeName. |
MethodBinding[] | getMethods(char[] selector, int suggestedParameterLength) |
MethodBinding[] | getMethods(char[] selector) |
PackageBinding | getPackage() |
boolean | isAbstract() Answer true if the receiver is an abstract type |
boolean | isAnnotationType() |
boolean | isBinaryBinding() |
boolean | isClass() |
boolean | isCompatibleWith(TypeBinding otherType, Scope captureScope) 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) |
boolean | isDefault() Answer true if the receiver has default visibility |
boolean | isEnum() |
boolean | isFinal() Answer true if the receiver is final and cannot be subclassed |
boolean | isHierarchyBeingConnected() Returns true if the type hierarchy is being connected |
boolean | isHierarchyConnected() Returns true if the type hierarchy is connected |
boolean | isInterface() |
boolean | isPrivate() Answer true if the receiver has private visibility |
boolean | isProtected() Answer true if the receiver has protected visibility |
boolean | isPublic() Answer true if the receiver has public visibility |
boolean | isStatic() Answer true if the receiver is a static member type (or toplevel) |
boolean | isSuperclassOf(ReferenceBinding otherType) Answer true if the receiver is in the superclass hierarchy of aType NOTE: Object.isSuperclassOf(Object) -> false |
boolean | isUncheckedException(boolean includeSupertype) JLS 11.5 ensures that Throwable, Exception, RuntimeException and Error are directly connected. |
boolean | isViewedAsDeprecated() Answer true if the receiver is deprecated (or any of its enclosing types) |
ReferenceBinding[] | memberTypes() Returns the member types of this type sorted by simple name. |
MethodBinding[] | methods() |
ReferenceBinding | outermostEnclosingType() |
char[] | qualifiedSourceName() Answer the source name for the type. |
char[] | readableName() Answer the receiver's signature. |
char[] | shortReadableName() |
void | sortFields(FieldBinding[] sortedFields, int left, int right) Sort the field array using a quicksort |
void | sortMethods(MethodBinding[] sortedMethods, int left, int right) Sort the field array using a quicksort |
ReferenceBinding | superclass() |
ReferenceBinding[] | superInterfaces() |
ReferenceBinding[] | syntheticEnclosingInstanceTypes() |