|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.lookup.Binding
org.eclipse.jdt.internal.compiler.lookup.TypeBinding
org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding
public abstract class ReferenceBinding
Field Summary | |
---|---|
char[][] |
compoundName
|
PackageBinding |
fPackage
|
static ReferenceBinding |
LUB_GENERIC
|
int |
modifiers
|
char[] |
sourceName
|
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.TypeBinding |
---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID |
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
---|
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_PARAMETERS, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, PACKAGE, PARAMETERIZED_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, VARIABLE, WILDCARD_TYPE |
Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent |
---|
JAR_FILE_ENTRY_SEPARATOR |
Constructor Summary | |
---|---|
ReferenceBinding()
|
Method Summary | |
---|---|
FieldBinding[] |
availableFields()
Return the array of resolvable fields (resilience) |
MethodBinding[] |
availableMethods()
Return the array of resolvable methods (resilience) |
static FieldBinding |
binarySearch(char[] name,
FieldBinding[] sortedFields)
|
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. |
boolean |
canBeInstantiated()
Answer true if the receiver can be instantiated |
boolean |
canBeSeenBy(PackageBinding invocationPackage)
Answer true if the receiver is visible to the invocationPackage. |
boolean |
canBeSeenBy(ReferenceBinding receiverType,
ReferenceBinding invocationType)
Answer true if the receiver is visible to the receiverType and the invocationType. |
boolean |
canBeSeenBy(Scope scope)
Answer true if the receiver is visible to the type provided by the scope. |
char[] |
computeGenericTypeSignature(TypeVariableBinding[] typeVariables)
|
void |
computeId()
|
char[] |
computeUniqueKey(boolean isLeaf)
p.X |
char[] |
constantPoolName()
Answer the receiver's constant pool name. |
java.lang.String |
debugName()
|
int |
depth()
|
boolean |
detectAnnotationCycle()
|
ReferenceBinding |
enclosingTypeAt(int relativeDepth)
|
int |
enumConstantCount()
|
int |
fieldCount()
|
FieldBinding[] |
fields()
|
int |
getAccessFlags()
|
AnnotationBinding[] |
getAnnotations()
|
long |
getAnnotationTagBits()
Compute the tagbits for standard annotations. |
MethodBinding |
getExactConstructor(TypeBinding[] argumentTypes)
|
MethodBinding |
getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
|
FieldBinding |
getField(char[] fieldName,
boolean needResolve)
|
char[] |
getFileName()
Answer the file name which defines the type. |
ReferenceBinding |
getMemberType(char[] typeName)
|
MethodBinding[] |
getMethods(char[] selector)
|
PackageBinding |
getPackage()
|
TypeVariableBinding |
getTypeVariable(char[] variableName)
|
int |
hashCode()
|
boolean |
hasIncompatibleSuperType(ReferenceBinding otherType)
Returns true if the two types have an incompatible common supertype, e.g. |
boolean |
hasMemberTypes()
|
boolean |
hasRestrictedAccess()
|
boolean |
implementsInterface(ReferenceBinding anInterface,
boolean searchHierarchy)
Answer true if the receiver implements anInterface or is identical to anInterface. |
boolean |
isAbstract()
Answer true if the receiver is an abstract type |
boolean |
isAnnotationType()
|
boolean |
isBinaryBinding()
|
boolean |
isClass()
|
boolean |
isCompatibleWith(TypeBinding otherType)
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 |
isDeprecated()
Answer true if the receiver is a deprecated type |
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 |
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 |
isStrictfp()
Answer true if all float operations must adher to IEEE 754 float/double rules |
boolean |
isSuperclassOf(ReferenceBinding otherType)
Answer true if the receiver is in the superclass hierarchy of aType NOTE: Object.isSuperclassOf(Object) -> false |
boolean |
isThrowable()
Returns true if a given type may be thrown |
boolean |
isUncheckedException(boolean includeSupertype)
JLS 11.5 ensures that Throwable, Exception, RuntimeException and Error are directly connected. |
boolean |
isUsed()
Answer true if the receiver has private visibility and is used locally |
boolean |
isViewedAsDeprecated()
Answer true if the receiver is deprecated (or any of its enclosing types) |
ReferenceBinding[] |
memberTypes()
|
MethodBinding[] |
methods()
|
ReferenceBinding |
outermostEnclosingType()
|
char[] |
qualifiedSourceName()
Answer the source name for the type. |
char[] |
readableName()
Answer the receiver's signature. |
AnnotationHolder |
retrieveAnnotationHolder(Binding binding,
boolean forceInitialization)
|
void |
setAnnotations(AnnotationBinding[] annotations)
|
char[] |
shortReadableName()
|
char[] |
signature()
Answer the receiver classfile signature. |
static void |
sortFields(FieldBinding[] sortedFields,
int left,
int right)
Sort the field array using a quicksort |
static void |
sortMethods(MethodBinding[] sortedMethods,
int left,
int right)
Sort the field array using a quicksort |
char[] |
sourceName()
|
ReferenceBinding |
superclass()
|
ReferenceBinding[] |
superInterfaces()
|
ReferenceBinding[] |
syntheticEnclosingInstanceTypes()
|
SyntheticArgumentBinding[] |
syntheticOuterLocalVariables()
|
Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isValidBinding, problemId |
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public char[][] compoundName
public char[] sourceName
public int modifiers
public PackageBinding fPackage
public static ReferenceBinding LUB_GENERIC
Constructor Detail |
---|
public ReferenceBinding()
Method Detail |
---|
public static FieldBinding binarySearch(char[] name, FieldBinding[] sortedFields)
public static long binarySearch(char[] selector, MethodBinding[] sortedMethods)
selector
- sortedMethods
-
public static void sortFields(FieldBinding[] sortedFields, int left, int right)
public static void sortMethods(MethodBinding[] sortedMethods, int left, int right)
public FieldBinding[] availableFields()
public MethodBinding[] availableMethods()
public boolean canBeInstantiated()
canBeInstantiated
in class TypeBinding
public final boolean canBeSeenBy(PackageBinding invocationPackage)
public final boolean canBeSeenBy(ReferenceBinding receiverType, ReferenceBinding invocationType)
public final boolean canBeSeenBy(Scope scope)
public char[] computeGenericTypeSignature(TypeVariableBinding[] typeVariables)
public void computeId()
public char[] computeUniqueKey(boolean isLeaf)
computeUniqueKey
in class Binding
public char[] constantPoolName()
constantPoolName
in class TypeBinding
public java.lang.String debugName()
debugName
in class TypeBinding
public final int depth()
public boolean detectAnnotationCycle()
public final ReferenceBinding enclosingTypeAt(int relativeDepth)
public int enumConstantCount()
public int fieldCount()
public FieldBinding[] fields()
public final int getAccessFlags()
public AnnotationBinding[] getAnnotations()
public long getAnnotationTagBits()
Binding
getAnnotationTagBits
in class Binding
Binding.getAnnotationTagBits()
public MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope)
public FieldBinding getField(char[] fieldName, boolean needResolve)
public char[] getFileName()
IDependent
getFileName
in interface IDependent
IDependent.getFileName()
public ReferenceBinding getMemberType(char[] typeName)
public MethodBinding[] getMethods(char[] selector)
public PackageBinding getPackage()
getPackage
in class TypeBinding
public TypeVariableBinding getTypeVariable(char[] variableName)
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasIncompatibleSuperType(ReferenceBinding otherType)
public boolean hasMemberTypes()
public final boolean hasRestrictedAccess()
public boolean implementsInterface(ReferenceBinding anInterface, boolean searchHierarchy)
public final boolean isAbstract()
public boolean isAnnotationType()
isAnnotationType
in class TypeBinding
public final boolean isBinaryBinding()
public boolean isClass()
isClass
in class TypeBinding
public boolean isCompatibleWith(TypeBinding otherType)
isCompatibleWith
in class TypeBinding
public final boolean isDefault()
public final boolean isDeprecated()
public boolean isEnum()
isEnum
in class TypeBinding
public final boolean isFinal()
public boolean isHierarchyBeingConnected()
public boolean isInterface()
isInterface
in class TypeBinding
public final boolean isPrivate()
public final boolean isProtected()
public final boolean isPublic()
public final boolean isStatic()
public final boolean isStrictfp()
public boolean isSuperclassOf(ReferenceBinding otherType)
public boolean isThrowable()
TypeBinding
isThrowable
in class TypeBinding
TypeBinding.isThrowable()
public boolean isUncheckedException(boolean includeSupertype)
isUncheckedException
in class TypeBinding
TypeBinding.isUncheckedException(boolean)
public final boolean isUsed()
public final boolean isViewedAsDeprecated()
public ReferenceBinding[] memberTypes()
public MethodBinding[] methods()
public final ReferenceBinding outermostEnclosingType()
public char[] qualifiedSourceName()
qualifiedSourceName
in class TypeBinding
public char[] readableName()
readableName
in class Binding
public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization)
public void setAnnotations(AnnotationBinding[] annotations)
public char[] shortReadableName()
shortReadableName
in class Binding
public char[] signature()
TypeBinding
signature
in class TypeBinding
public char[] sourceName()
sourceName
in class TypeBinding
public ReferenceBinding superclass()
public ReferenceBinding[] superInterfaces()
public ReferenceBinding[] syntheticEnclosingInstanceTypes()
public SyntheticArgumentBinding[] syntheticOuterLocalVariables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |