|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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
| 字段摘要 | |
|---|---|
char[][] |
compoundName
|
PackageBinding |
fPackage
|
static ReferenceBinding |
LUB_GENERIC
|
int |
modifiers
|
char[] |
sourceName
|
| 从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的字段 |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID |
| 从类 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, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE |
| 构造方法摘要 | |
|---|---|
ReferenceBinding()
|
|
| 方法摘要 | |
|---|---|
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. |
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. |
int |
getEnclosingInstancesSlotSize()
|
MethodBinding |
getExactConstructor(TypeBinding[] argumentTypes)
|
MethodBinding |
getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
|
FieldBinding |
getField(char[] fieldName,
boolean needResolve)
|
char[] |
getFileName()
|
ReferenceBinding |
getMemberType(char[] typeName)
|
MethodBinding[] |
getMethods(char[] selector)
|
MethodBinding[] |
getMethods(char[] selector,
int suggestedParameterLength)
|
int |
getOuterLocalVariablesSlotSize()
|
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 |
isHierarchyBeingActivelyConnected()
Returns true if the type hierarchy is being connected "actively" i.e not paused momentatrily, while resolving type arguments. |
boolean |
isHierarchyBeingConnected()
Returns true if the type hierarchy is being connected |
boolean |
isHierarchyConnected()
Returns true if the type hierarchy is connected |
boolean |
isInterface()
|
boolean |
isOrEnclosedByPrivateType()
Answer true if the receiver or any of its enclosing types have private visibility |
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()
|
FieldBinding[] |
unResolvedFields()
|
| 从类 org.eclipse.jdt.internal.compiler.lookup.Binding 继承的方法 |
|---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemId |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public char[][] compoundName
public char[] sourceName
public int modifiers
public PackageBinding fPackage
public static final ReferenceBinding LUB_GENERIC
| 构造方法详细信息 |
|---|
public ReferenceBinding()
| 方法详细信息 |
|---|
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()
TypeBinding 中的 canBeInstantiatedpublic 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)
Binding 中的 computeUniqueKeypublic char[] constantPoolName()
TypeBinding 中的 constantPoolNamepublic String debugName()
TypeBinding 中的 debugNamepublic 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 复制的描述
Binding 中的 getAnnotationTagBitsBinding.getAnnotationTagBits()public int getEnclosingInstancesSlotSize()
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()public ReferenceBinding getMemberType(char[] typeName)
public MethodBinding[] getMethods(char[] selector)
public MethodBinding[] getMethods(char[] selector,
int suggestedParameterLength)
public int getOuterLocalVariablesSlotSize()
public PackageBinding getPackage()
TypeBinding 中的 getPackagepublic TypeVariableBinding getTypeVariable(char[] variableName)
public int hashCode()
Object 中的 hashCodepublic 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()
TypeBinding 中的 isAnnotationTypepublic final boolean isBinaryBinding()
public boolean isClass()
TypeBinding 中的 isClasspublic boolean isCompatibleWith(TypeBinding otherType)
TypeBinding 中的 isCompatibleWithpublic final boolean isDefault()
public final boolean isDeprecated()
public boolean isEnum()
TypeBinding 中的 isEnumpublic final boolean isFinal()
public boolean isHierarchyBeingConnected()
public boolean isHierarchyBeingActivelyConnected()
public boolean isHierarchyConnected()
public boolean isInterface()
TypeBinding 中的 isInterfacepublic final boolean isPrivate()
public final boolean isOrEnclosedByPrivateType()
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 复制的描述
TypeBinding 中的 isThrowableTypeBinding.isThrowable()public boolean isUncheckedException(boolean includeSupertype)
TypeBinding 中的 isUncheckedExceptionTypeBinding.isUncheckedException(boolean)public final boolean isUsed()
public final boolean isViewedAsDeprecated()
public ReferenceBinding[] memberTypes()
public MethodBinding[] methods()
public final ReferenceBinding outermostEnclosingType()
public char[] qualifiedSourceName()
TypeBinding 中的 qualifiedSourceNamepublic char[] readableName()
Binding 中的 readableName
public AnnotationHolder retrieveAnnotationHolder(Binding binding,
boolean forceInitialization)
public void setAnnotations(AnnotationBinding[] annotations)
public char[] shortReadableName()
Binding 中的 shortReadableNamepublic char[] signature()
TypeBinding 复制的描述
TypeBinding 中的 signaturepublic char[] sourceName()
TypeBinding 中的 sourceNamepublic ReferenceBinding superclass()
public ReferenceBinding[] superInterfaces()
public ReferenceBinding[] syntheticEnclosingInstanceTypes()
public SyntheticArgumentBinding[] syntheticOuterLocalVariables()
public FieldBinding[] unResolvedFields()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||