public class EclipseSourceType extends AbstractReferenceTypeDelegate
| Modifier and Type | Field and Description |
|---|---|
static short |
ACC_ANNOTATION |
static short |
ACC_ENUM |
protected ResolvedMember[] |
declaredFields |
protected ResolvedMember[] |
declaredMethods |
protected ResolvedPointcutDefinition[] |
declaredPointcuts |
java.util.List<Declare> |
declares |
java.util.List<EclipseTypeMunger> |
typeMungers |
cachedGenericClassTypeSignature, exposedToWeaver, resolvedTypeX, UNKNOWN_SOURCE_FILE| Constructor and Description |
|---|
EclipseSourceType(ReferenceType resolvedTypeX,
EclipseFactory factory,
SourceTypeBinding binding,
TypeDeclaration declaration,
CompilationUnitDeclaration unit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAnnotationTargetType() |
void |
checkPointcutDeclarations() |
AnnotationAJ |
convertEclipseAnnotation(Annotation eclipseAnnotation,
World w)
Convert one eclipse annotation into an AnnotationX object containing an AnnotationAJ object.
|
boolean |
doesNotExposeShadowMungers()
Designed to be overriden by EclipseType to disable collection of shadow mungers during pre-weave compilation phase
|
protected EclipseFactory |
eclipseWorld() |
protected void |
fillDeclaredMembers() |
AnnotationAJ[] |
getAnnotations()
WARNING: This method does not have a complete implementation.
|
AnnotationTargetKind[] |
getAnnotationTargetKinds() |
ResolvedType[] |
getAnnotationTypes() |
ResolvedMember[] |
getDeclaredFields()
This method may not return all fields, for example it may not include the ajc$initFailureCause or ajc$perSingletonInstance
fields - see bug 129613
|
java.lang.String |
getDeclaredGenericSignature() |
ResolvedType[] |
getDeclaredInterfaces() |
ResolvedMember[] |
getDeclaredMethods()
This method may not return all methods, for example it may not include clinit, aspectOf, hasAspect or ajc$postClinit methods
- see bug 129613
|
ResolvedMember[] |
getDeclaredPointcuts() |
java.util.Collection |
getDeclares() |
int |
getModifiers() |
ResolvedType |
getOuterClass() |
PerClause |
getPerClause() |
java.util.Collection |
getPrivilegedAccesses() |
java.lang.String |
getRetentionPolicy() |
ResolvedType |
getSuperclass() |
java.util.Collection |
getTypeMungers() |
TypeVariable[] |
getTypeVariables() |
WeaverStateInfo |
getWeaverState() |
boolean |
hasAnnotation(UnresolvedType ofType) |
boolean |
hasAnnotations() |
boolean |
isAnnotation() |
boolean |
isAnnotationStyleAspect() |
boolean |
isAnnotationWithRuntimeRetention() |
boolean |
isAnonymous() |
boolean |
isAspect() |
boolean |
isEnum() |
boolean |
isGeneric() |
boolean |
isInterface() |
boolean |
isNested() |
java.lang.String |
toString() |
copySourceContext, ensureConsistent, getCompilerVersion, getFormalTypeParametersFromOuterClass, getGenericClassTypeSignature, getResolvedTypeX, getSourceContext, getSourcefilename, getSourceLocation, hasBeenWoven, isCacheable, isClass, isExposedToWeaver, isWeavable, setSourceContext, setSourcefilenameprotected ResolvedPointcutDefinition[] declaredPointcuts
protected ResolvedMember[] declaredMethods
protected ResolvedMember[] declaredFields
public java.util.List<Declare> declares
public java.util.List<EclipseTypeMunger> typeMungers
public static final short ACC_ANNOTATION
public static final short ACC_ENUM
public EclipseSourceType(ReferenceType resolvedTypeX, EclipseFactory factory, SourceTypeBinding binding, TypeDeclaration declaration, CompilationUnitDeclaration unit)
protected EclipseFactory eclipseWorld()
public boolean isAspect()
public boolean isAnonymous()
public boolean isNested()
public ResolvedType getOuterClass()
public boolean isAnnotationStyleAspect()
public WeaverStateInfo getWeaverState()
public ResolvedType getSuperclass()
public ResolvedType[] getDeclaredInterfaces()
protected void fillDeclaredMembers()
public ResolvedMember[] getDeclaredFields()
public ResolvedMember[] getDeclaredMethods()
public ResolvedMember[] getDeclaredPointcuts()
public int getModifiers()
public java.lang.String toString()
toString in class java.lang.Objectpublic void checkPointcutDeclarations()
public boolean isInterface()
public boolean isEnum()
public boolean isAnnotation()
public boolean isAnnotationWithRuntimeRetention()
public java.lang.String getRetentionPolicy()
public boolean canAnnotationTargetType()
public AnnotationTargetKind[] getAnnotationTargetKinds()
public boolean hasAnnotation(UnresolvedType ofType)
public AnnotationAJ[] getAnnotations()
public boolean hasAnnotations()
public AnnotationAJ convertEclipseAnnotation(Annotation eclipseAnnotation, World w)
public ResolvedType[] getAnnotationTypes()
public PerClause getPerClause()
public java.util.Collection getDeclares()
public java.util.Collection getPrivilegedAccesses()
public java.util.Collection getTypeMungers()
public boolean doesNotExposeShadowMungers()
AbstractReferenceTypeDelegatedoesNotExposeShadowMungers in interface ReferenceTypeDelegatedoesNotExposeShadowMungers in class AbstractReferenceTypeDelegatepublic java.lang.String getDeclaredGenericSignature()
public boolean isGeneric()
public TypeVariable[] getTypeVariables()