|
|||||||||
| 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.ReferenceBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CaptureBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CaptureBinding18
public class CaptureBinding18
Capture-like type variable introduced during 1.8 type inference.
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CaptureBinding |
|---|
captureID, lowerBound, position, sourceType, wildcard |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding |
|---|
declaringElement, firstBound, genericTypeSignature, rank, superclass, superInterfaces |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding |
|---|
compoundName, fPackage, LUB_GENERIC, modifiers, samProblemBinding, singleAbstractMethod, sourceName |
| 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 | |
|---|---|
CaptureBinding18(ReferenceBinding contextType,
char[] sourceName,
char[] originalName,
int position,
int captureID,
LookupEnvironment environment)
|
|
| Method Summary | |
|---|---|
TypeBinding |
clone(TypeBinding enclosingType)
Virtual copy constructor: a copy is made of the receiver's entire instance state and then suitably parameterized by the arguments to the clone operation as seen fit by each type. |
char[] |
computeUniqueKey(boolean isLeaf)
p.X |
TypeBinding |
erasure()
|
TypeBinding |
findSuperTypeOriginatingFrom(TypeBinding otherType)
Find supertype which originates from a given type, or null if not found |
char[] |
genericTypeSignature()
T::Ljava/util/Map;:Ljava/io/Serializable; T:LY |
MethodBinding[] |
getMethods(char[] selector)
|
void |
initializeBounds(Scope scope,
ParameterizedTypeBinding capturedParameterizedType)
Initialize capture bounds using substituted supertypes e.g. |
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 |
isEquivalentTo(TypeBinding otherType)
Returns true if a type is identical to another one, or for generic types, true if compared to its raw type. |
boolean |
isProperType(boolean admitCapture18)
JLS8 Sect 18.1.1 |
char[] |
readableName()
Answer the receiver's signature. |
boolean |
setUpperBounds(TypeBinding[] upperBounds,
ReferenceBinding javaLangObject)
|
char[] |
shortReadableName()
|
TypeBinding |
uncapture(Scope scope)
Perform capture "deconversion" on a given type |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CaptureBinding |
|---|
debugName, isCapture, nullAnnotatedReadableName, toString |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding |
|---|
acceptsNonNullDefault, annotatedDebugName, boundCheck, boundsCount, canBeInstantiated, collectSubstitutes, combineTypeAnnotations, constantPoolName, enterRecursiveFunction, evaluateNullAnnotations, exitRecursiveFunction, genericSignature, hasTypeBit, isErasureBoundTo, isHierarchyConnected, isInterchangeableWith, isSubtypeOf, isTypeVariable, kind, mentionsAny, otherUpperBounds, setFirstBound, setSuperClass, setSuperInterfaces, setTypeAnnotations, superclass, superInterfaces, unannotated, upperBound |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding |
|---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isTaggedRepeatable, isValidBinding, isVolatile, problemId, setAnnotations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CaptureBinding18(ReferenceBinding contextType,
char[] sourceName,
char[] originalName,
int position,
int captureID,
LookupEnvironment environment)
| Method Detail |
|---|
public boolean setUpperBounds(TypeBinding[] upperBounds,
ReferenceBinding javaLangObject)
public void initializeBounds(Scope scope,
ParameterizedTypeBinding capturedParameterizedType)
CaptureBinding
initializeBounds in class CaptureBindingpublic TypeBinding clone(TypeBinding enclosingType)
TypeBinding
clone in class CaptureBindingpublic MethodBinding[] getMethods(char[] selector)
getMethods in class ReferenceBindingpublic TypeBinding erasure()
erasure in class TypeVariableBindingpublic boolean isEquivalentTo(TypeBinding otherType)
TypeBinding
isEquivalentTo in class CaptureBindingTypeBinding.isEquivalentTo(TypeBinding)
public boolean isCompatibleWith(TypeBinding otherType,
Scope captureScope)
ReferenceBinding
isCompatibleWith in class ReferenceBindingpublic TypeBinding findSuperTypeOriginatingFrom(TypeBinding otherType)
TypeBinding
findSuperTypeOriginatingFrom in class TypeBindingpublic boolean isProperType(boolean admitCapture18)
TypeBinding
isProperType in class TypeVariableBindingadmitCapture18 - 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 char[] genericTypeSignature()
TypeVariableBinding
genericTypeSignature in class CaptureBindingpublic char[] readableName()
ReferenceBinding
readableName in class CaptureBindingReferenceBinding.readableName()public char[] shortReadableName()
shortReadableName in class CaptureBindingReferenceBinding.shortReadableName()public TypeBinding uncapture(Scope scope)
TypeBinding
uncapture in class CaptureBindingpublic char[] computeUniqueKey(boolean isLeaf)
ReferenceBinding
computeUniqueKey in class CaptureBinding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||