|
|||||||||
| 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.IntersectionCastTypeBinding
public class IntersectionCastTypeBinding
| Field Summary | |
|---|---|
ReferenceBinding[] |
intersectingTypes
|
| 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 | |
|---|---|
IntersectionCastTypeBinding(ReferenceBinding[] intersectingTypes,
LookupEnvironment environment)
|
|
| Method Summary | |
|---|---|
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[] |
constantPoolName()
Answer the receiver's constant pool name. |
java.lang.String |
debugName()
|
ReferenceBinding[] |
getIntersectingTypes()
|
PackageBinding |
getPackage()
|
TypeBinding |
getSAMType(Scope scope)
|
MethodBinding |
getSingleAbstractMethod(Scope scope,
boolean replaceWildcards)
Return the single abstract method of a functional interface, or null, if the receiver is not a functional interface as defined in JLS 9.8. |
boolean |
hasTypeBit(int bit)
Answer an additional bit characterizing this type, like TypeIds.BitAutoCloseable. |
boolean |
isBoxedPrimitiveType()
|
boolean |
isCompatibleWith(TypeBinding right,
Scope scope)
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 |
isIntersectionCastType()
|
boolean |
isSubtypeOf(TypeBinding other)
|
int |
kind()
|
boolean |
mentionsAny(TypeBinding[] parameters,
int idx)
Does this type mention any of the given type parameters, except the one at position 'idx'? |
char[] |
qualifiedSourceName()
Answer the source name for the type. |
char[] |
readableName()
Answer the receiver's signature. |
char[] |
shortReadableName()
|
char[] |
sourceName()
|
ReferenceBinding |
superclass()
|
ReferenceBinding[] |
superInterfaces()
|
java.lang.String |
toString()
|
| 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 |
| Field Detail |
|---|
public ReferenceBinding[] intersectingTypes
| Constructor Detail |
|---|
public IntersectionCastTypeBinding(ReferenceBinding[] intersectingTypes,
LookupEnvironment environment)
| Method Detail |
|---|
public MethodBinding getSingleAbstractMethod(Scope scope,
boolean replaceWildcards)
TypeBinding
getSingleAbstractMethod in class ReferenceBindingscope - scopereplaceWildcards - Should wildcards be replaced following JLS 9.8? Say false for lambdas with explicit argument types which should apply 18.5.3
public boolean hasTypeBit(int bit)
TypeBindingTypeIds.BitAutoCloseable.
hasTypeBit in class TypeBindingpublic boolean canBeInstantiated()
ReferenceBinding
canBeInstantiated in class ReferenceBindingpublic boolean canBeSeenBy(PackageBinding invocationPackage)
ReferenceBinding
canBeSeenBy in class ReferenceBindingpublic boolean canBeSeenBy(Scope scope)
ReferenceBinding
canBeSeenBy in class ReferenceBinding
public boolean canBeSeenBy(ReferenceBinding receiverType,
ReferenceBinding invocationType)
ReferenceBinding
canBeSeenBy in class ReferenceBindingpublic char[] constantPoolName()
ReferenceBinding
constantPoolName in class ReferenceBindingpublic PackageBinding getPackage()
getPackage in class ReferenceBindingpublic ReferenceBinding[] getIntersectingTypes()
getIntersectingTypes in class TypeBindingpublic ReferenceBinding superclass()
superclass in class ReferenceBindingpublic ReferenceBinding[] superInterfaces()
superInterfaces in class ReferenceBindingpublic boolean isBoxedPrimitiveType()
isBoxedPrimitiveType in class TypeBinding
public boolean isCompatibleWith(TypeBinding right,
Scope scope)
ReferenceBinding
isCompatibleWith in class ReferenceBindingpublic boolean isSubtypeOf(TypeBinding other)
isSubtypeOf in class ReferenceBindingpublic char[] qualifiedSourceName()
ReferenceBinding
qualifiedSourceName in class ReferenceBindingpublic char[] sourceName()
sourceName in class ReferenceBindingpublic char[] readableName()
ReferenceBinding
readableName in class ReferenceBindingpublic char[] shortReadableName()
shortReadableName in class ReferenceBindingpublic boolean isIntersectionCastType()
isIntersectionCastType in class TypeBindingpublic int kind()
kind in class TypeBindingpublic java.lang.String debugName()
debugName in class ReferenceBindingpublic java.lang.String toString()
toString in class java.lang.Objectpublic TypeBinding getSAMType(Scope scope)
public boolean mentionsAny(TypeBinding[] parameters,
int idx)
TypeBinding
mentionsAny in class TypeBinding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||