public class MissingResolvedTypeWithKnownSignature extends ResolvedType
UnresolvedType.TypeKind
bits, crosscuttingMembers, EMPTY_ARRAY, EMPTY_RESOLVED_TYPE_ARRAY, interTypeMungers, MISSING, NONE, PARAMETERIZED_TYPE_IDENTIFIER, temporaryAnnotationTypes, validBoxing, world
AJC_PRIVILEGED, ANNOTATION, ARRAY_WITH_JUST_OBJECT, AT_INHERITED, AT_RETENTION, AT_TARGET, BOOLEAN, BYTE, CHAR, CLONEABLE, DOUBLE, ENUM, ERROR, FLOAT, INT, JAVA_LANG_ANNOTATION, JAVA_LANG_CLASS_ARRAY, JAVA_LANG_REFLECT_CONSTRUCTOR, JAVA_LANG_REFLECT_FIELD, JAVA_LANG_REFLECT_METHOD, JL_CLASS, JL_EXCEPTION, JL_STRING, JOINPOINT_ENCLOSINGSTATICPART, JOINPOINT_STATICPART, LONG, MISSING_NAME, OBJECT, OBJECTARRAY, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, signature, signatureErasure, SOMETHING, SUPPRESS_AJ_WARNINGS, THROWABLE, typeKind, typeParameters, typeVariables, VOID
Constructor and Description |
---|
MissingResolvedTypeWithKnownSignature(java.lang.String signature,
java.lang.String signatureErasure,
World world) |
MissingResolvedTypeWithKnownSignature(java.lang.String signature,
World world) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectInterTypeMungers(java.util.List collector) |
AnnotationAJ[] |
getAnnotations() |
ResolvedMember[] |
getDeclaredFields() |
ResolvedType[] |
getDeclaredInterfaces() |
ResolvedMember[] |
getDeclaredMethods() |
ResolvedMember[] |
getDeclaredPointcuts() |
java.util.List |
getInterTypeMungers() |
java.util.List |
getInterTypeMungersIncludingSupers()
??? This method is O(N*M) where N = number of methods and M is number of inter-type declarations in my super
|
java.util.List |
getInterTypeParentMungers() |
java.util.List |
getInterTypeParentMungersIncludingSupers() |
int |
getModifiers() |
ISourceContext |
getSourceContext() |
ResolvedType |
getSuperclass() |
boolean |
hasAnnotation(UnresolvedType ofType) |
boolean |
isAssignableFrom(ResolvedType other)
Determines if the variables of this type could be assigned values of another type without casting.
|
boolean |
isAssignableFrom(ResolvedType other,
boolean allowMissing) |
boolean |
isCoerceableFrom(ResolvedType other)
Determines if values of another type could possibly be cast to this type.
|
boolean |
isMissing() |
void |
raiseWarningOnJoinPointSignature(java.lang.String signature) |
void |
raiseWarningOnMissingInterfaceWhilstFindingMethods() |
addAnnotation, addInterTypeMunger, addParent, ajMembersNeedParameterization, canAnnotationTargetType, canBeSeenBy, checkInterTypeMungers, checkLegalOverride, clearInterTypeMungers, collectCrosscuttingMembers, collectDeclares, conflictingSignature, conflictingSignature, discoverActualOccurrenceOfTypeInHierarchy, doesNotExposeShadowMungers, ensureConsistent, equals, fillInAnyTypeParameters, findPointcut, getAjMemberParameterizationMap, getAnnotationOfType, getAnnotationTargetKinds, getAnnotationTypes, getBinaryPath, getCompilerVersion, getDeclaredAdvice, getDeclaredJavaFields, getDeclaredJavaMethods, getDeclaredShadowMungers, getDeclares, getDeclaringType, getDirectSupertypes, getExposedPointcuts, getFields, getGenericType, getHierarchy, getHierarchy, getHierarchyWithoutIterator, getMemberParameterizationMap, getMethods, getMethodsIncludingIntertypeDeclarations, getMethodsWithoutIterator, getOuterClass, getPerClause, getPointcuts, getPrivilegedAccesses, getRawType, getResolvedComponentType, getResolvedTypeParameters, getSignatureForAttribute, getSize, getSourceLocation, getTopmostImplementor, getTypeMungers, getWeaverState, getWorld, hasAnnotations, isAbstract, isAnnotation, isAnnotationStyleAspect, isAnnotationWithRuntimeRetention, isAnonymous, isAspect, isCacheable, isCheckedException, isClass, isConvertableFrom, isEnum, isException, isExposedToWeaver, isFinal, isGroovyObject, isInheritedAnnotation, isInterface, isMissing, isMoreVisible, isNested, isParameterizedWithTypeVariable, isPrimitiveArray, isPrivilegedAspect, isSynthetic, isTopmostImplementor, isTypeHierarchyComplete, isVisible, lookupDirectlyDeclaredMemberNoSupers, lookupField, lookupMemberIncludingITDsOnInterfaces, lookupMemberNoSupers, lookupMemberWithSupersAndITDs, lookupMethod, lookupMethodInITDs, lookupResolvedMember, lookupSyntheticMember, makeArray, matches, needsNoConversionFrom, parameterize, parameterizedWith, setBinaryPath, tagAsTypeHierarchyComplete
add, forGenericType, forGenericTypeSignature, forGenericTypeVariables, forName, forNames, forPrimitiveType, forRawTypeName, forSignature, forSignatures, getBaseName, getClassName, getComponentType, getErasureSignature, getName, getNameAsIdentifier, getNames, getOutermostType, getPackageName, getPackageNameAsIdentifier, getRawName, getSignature, getSimpleBaseName, getSimpleName, getTypekind, getTypeParameters, getTypeVariableNamed, getTypeVariables, hashCode, insert, isArray, isGenericType, isGenericWildcard, isParameterizedOrGenericType, isParameterizedOrRawType, isParameterizedType, isPrimitiveType, isRawType, isSimpleType, isTypeVariableReference, isVoid, makeArray, needsModifiableDelegate, read, readArray, resolve, setNeedsModifiableDelegate, toDebugString, toString, toTraceString, write, writeArray
public MissingResolvedTypeWithKnownSignature(java.lang.String signature, World world)
signature
- world
- public MissingResolvedTypeWithKnownSignature(java.lang.String signature, java.lang.String signatureErasure, World world)
signature
- signatureErasure
- world
- public boolean isMissing()
isMissing
in class ResolvedType
public ResolvedMember[] getDeclaredFields()
getDeclaredFields
in class ResolvedType
public ResolvedMember[] getDeclaredMethods()
getDeclaredMethods
in class ResolvedType
public AnnotationAJ[] getAnnotations()
getAnnotations
in class ResolvedType
public ResolvedType[] getDeclaredInterfaces()
getDeclaredInterfaces
in class ResolvedType
public ResolvedMember[] getDeclaredPointcuts()
getDeclaredPointcuts
in class ResolvedType
public ResolvedType getSuperclass()
getSuperclass
in class ResolvedType
public int getModifiers()
getModifiers
in class ResolvedType
public ISourceContext getSourceContext()
getSourceContext
in class ResolvedType
public boolean isAssignableFrom(ResolvedType other)
ResolvedType
isAssignableFrom
in class ResolvedType
other
- the other typepublic boolean isAssignableFrom(ResolvedType other, boolean allowMissing)
isAssignableFrom
in class ResolvedType
public boolean isCoerceableFrom(ResolvedType other)
ResolvedType
This method should be commutative, i.e., for all UnresolvedType a, b and all World w:
a.isCoerceableFrom(b, w) == b.isCoerceableFrom(a, w)
isCoerceableFrom
in class ResolvedType
other
- the other typepublic boolean hasAnnotation(UnresolvedType ofType)
public java.util.List getInterTypeMungers()
getInterTypeMungers
in class ResolvedType
public java.util.List getInterTypeMungersIncludingSupers()
ResolvedType
getInterTypeMungersIncludingSupers
in class ResolvedType
public java.util.List getInterTypeParentMungers()
getInterTypeParentMungers
in class ResolvedType
public java.util.List getInterTypeParentMungersIncludingSupers()
getInterTypeParentMungersIncludingSupers
in class ResolvedType
protected void collectInterTypeMungers(java.util.List collector)
collectInterTypeMungers
in class ResolvedType
public void raiseWarningOnJoinPointSignature(java.lang.String signature)
public void raiseWarningOnMissingInterfaceWhilstFindingMethods()