|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ArrayBinding
public final class ArrayBinding
| Field Summary | |
|---|---|
static FieldBinding |
ArrayLength
|
int |
dimensions
|
TypeBinding |
leafComponentType
|
long[] |
nullTagBitsPerDimension
|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, TYPE_USE_BINDING, typeAnnotations, VOID |
| Constructor Summary | |
|---|---|
ArrayBinding(TypeBinding type,
int dimensions,
LookupEnvironment environment)
|
|
| Method Summary | |
|---|---|
boolean |
acceptsNonNullDefault()
Used to implement this sentence from o.e.j.annotation.DefaultLocation: "Wildcards and the use of type variables are always excluded from NonNullByDefault." |
java.lang.String |
annotatedDebugName()
|
TypeBinding |
closestMatch()
In case of problems, returns the closest match found. |
java.util.List |
collectMissingTypes(java.util.List missingTypes)
Iterate through the type components to collect instances of leaf missing types |
void |
collectSubstitutes(Scope scope,
TypeBinding actualType,
InferenceContext inferenceContext,
int constraint)
Collect the substitutes into a map for certain type variables inside the receiver type e.g. |
char[] |
computeUniqueKey(boolean isLeaf)
|
char[] |
constantPoolName()
Answer the receiver's constant pool name. |
java.lang.String |
debugName()
|
int |
dimensions()
|
TypeBinding |
elementsType()
|
LookupEnvironment |
environment()
|
TypeBinding |
erasure()
|
char[] |
genericTypeSignature()
Answer the receiver classfile signature. |
PackageBinding |
getPackage()
|
int |
hashCode()
|
boolean |
isCompatibleWith(TypeBinding otherType,
Scope captureScope)
|
boolean |
isProperType(boolean admitCapture18)
JLS8 Sect 18.1.1 |
boolean |
isSubtypeOf(TypeBinding otherType)
|
int |
kind()
|
TypeBinding |
leafComponentType()
|
boolean |
mentionsAny(TypeBinding[] parameters,
int idx)
Does this type mention any of the given type parameters, except the one at position 'idx'? |
char[] |
nullAnnotatedReadableName(CompilerOptions options,
boolean shortNames)
Answer a readable name (for error reporting) that includes nullness type annotations. |
int |
problemId()
|
char[] |
qualifiedSourceName()
Answer the source name for the type. |
char[] |
readableName()
|
void |
setTypeAnnotations(AnnotationBinding[] annotations,
boolean evalNullAnnotations)
|
char[] |
shortReadableName()
|
char[] |
sourceName()
|
void |
swapUnresolved(UnresolvedReferenceBinding unresolvedType,
ReferenceBinding resolvedType,
LookupEnvironment env)
|
java.lang.String |
toString()
|
TypeBinding |
unannotated(boolean removeOnlyNullAnnotations)
Return this type minus its type annotations |
TypeBinding |
uncapture(Scope scope)
Perform capture "deconversion" on a given type |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding |
|---|
computeUniqueKey, getAnnotations, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValidBinding, isVolatile, setAnnotations, setAnnotations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final FieldBinding ArrayLength
public TypeBinding leafComponentType
public int dimensions
public long[] nullTagBitsPerDimension
| Constructor Detail |
|---|
public ArrayBinding(TypeBinding type,
int dimensions,
LookupEnvironment environment)
| Method Detail |
|---|
public TypeBinding closestMatch()
TypeBinding
closestMatch in class TypeBindingpublic java.util.List collectMissingTypes(java.util.List missingTypes)
TypeBinding
collectMissingTypes in class TypeBindingTypeBinding.collectMissingTypes(java.util.List)
public void collectSubstitutes(Scope scope,
TypeBinding actualType,
InferenceContext inferenceContext,
int constraint)
collectSubstitutes in class TypeBinding
public boolean mentionsAny(TypeBinding[] parameters,
int idx)
TypeBinding
mentionsAny in class TypeBindingpublic char[] computeUniqueKey(boolean isLeaf)
computeUniqueKey in class Bindingpublic char[] constantPoolName()
constantPoolName in class TypeBindingpublic java.lang.String debugName()
debugName in class TypeBindingpublic java.lang.String annotatedDebugName()
annotatedDebugName in class TypeBindingpublic int dimensions()
dimensions in class TypeBindingpublic TypeBinding elementsType()
public TypeBinding erasure()
erasure in class TypeBindingTypeBinding.erasure()public LookupEnvironment environment()
public char[] genericTypeSignature()
TypeBinding
genericTypeSignature in class TypeBindingpublic PackageBinding getPackage()
getPackage in class TypeBindingpublic int hashCode()
hashCode in class java.lang.Object
public boolean isCompatibleWith(TypeBinding otherType,
Scope captureScope)
isCompatibleWith in class TypeBindingpublic boolean isSubtypeOf(TypeBinding otherType)
isSubtypeOf in class TypeBindingpublic boolean isProperType(boolean admitCapture18)
TypeBinding
isProperType in class TypeBindingadmitCapture18 - request if CaptureBinding18 shuld be considered as a proper type.
If unsure say 'true', only in Scope.greaterLowerBound(TypeBinding[], Scope, LookupEnvironment)
CaptureBinding18 has to be excluded to prevent an NPE on a branch that heuristically tries to avoid
inconsistent intersections.public int kind()
kind in class TypeBindingpublic TypeBinding leafComponentType()
leafComponentType in class TypeBinding
public char[] nullAnnotatedReadableName(CompilerOptions options,
boolean shortNames)
TypeBinding
nullAnnotatedReadableName in class TypeBindingpublic int problemId()
problemId in class Bindingpublic char[] qualifiedSourceName()
qualifiedSourceName in class TypeBindingpublic char[] readableName()
readableName in class Binding
public void setTypeAnnotations(AnnotationBinding[] annotations,
boolean evalNullAnnotations)
setTypeAnnotations in class TypeBindingpublic char[] shortReadableName()
shortReadableName in class Bindingpublic char[] sourceName()
sourceName in class TypeBinding
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType,
ReferenceBinding resolvedType,
LookupEnvironment env)
swapUnresolved in class TypeBindingpublic java.lang.String toString()
toString in class java.lang.Objectpublic TypeBinding unannotated(boolean removeOnlyNullAnnotations)
TypeBinding
unannotated in class TypeBindingremoveOnlyNullAnnotations - if true only null type annotations are removed, otherwise all type annotations.public TypeBinding uncapture(Scope scope)
TypeBinding
uncapture in class TypeBindingpublic boolean acceptsNonNullDefault()
TypeBinding
acceptsNonNullDefault in class TypeBinding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||