|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JjTypeSystem_c abc.aspectj.types.AJTypeSystem_c
public class AJTypeSystem_c
Field Summary | |
---|---|
protected Flags |
AJ_METHOD_FLAGS
All flags allowed for a method. |
protected Flags |
ASPECT_FLAGS
|
protected ClassType |
JOINPOINT_
|
protected Flags |
MEMBER_CLASS_FLAGS
All flags allowed for a member class. |
protected ClassType |
NOASPECTBOUND_
|
protected Flags |
POINTCUT_FLAGS
|
Constructor Summary | |
---|---|
AJTypeSystem_c()
|
Method Summary | |
---|---|
MethodInstance |
adviceInstance(Position pos,
ReferenceType container,
Flags flags,
Type returnType,
java.lang.String name,
java.util.List argTypes,
java.util.List excTypes,
AdviceSpec spec)
|
void |
checkClassConformance(ClassType ct)
Assert that ct implements all abstract methods required;
that is, if it is a concrete class, then it must implement all
interfaces and abstract methods that it or it's superclasses declare, and if
it is an abstract class then any methods that it overrides are overridden
correctly. |
void |
checkMemberClassFlags(Flags f)
|
void |
checkMethodFlags(Flags f)
|
void |
checkPointcutFlags(Flags f)
|
void |
checkTopLevelClassFlags(Flags f)
|
protected boolean |
classAccessible(ClassType targetClass,
ClassType contextClass)
|
AspectType |
createAspectType(LazyClassInitializer init,
Source fromSource,
int perKind)
|
AspectType |
createAspectType(Source fromSource,
int perKind)
|
Context |
createContext()
|
java.util.List |
findAcceptableMethods(ReferenceType container,
java.lang.String name,
java.util.List argTypes,
ClassType currClass)
|
FieldInstance |
findField(ReferenceType container,
java.lang.String name,
ClassType currClass)
Requires: all type arguments are canonical. |
java.util.List |
findFieldInstances(ReferenceType container,
java.lang.String name)
|
PointcutInstance_c |
findPointCutNamed(ClassType ct,
java.lang.String name)
|
void |
initialize(LoadedClassResolver loadedResolver,
ExtensionInfo extInfo)
|
ConstructorInstance |
interTypeConstructorInstance(Position pos,
java.lang.String id,
ClassType origin,
ClassType container,
Flags flags,
java.util.List argTypes,
java.util.List excTypes)
|
FieldInstance |
interTypeFieldInstance(Position pos,
java.lang.String id,
ClassType origin,
ReferenceType container,
Flags flags,
Type type,
java.lang.String name)
|
MethodInstance |
interTypeMethodInstance(Position pos,
java.lang.String id,
ClassType origin,
ReferenceType container,
Flags flags,
Flags oflags,
Type returnType,
java.lang.String name,
java.util.List argTypes,
java.util.List excTypes)
|
boolean |
isAccessible(MemberInstance mi,
Context context)
|
boolean |
isAccessibleIgnorePrivileged(MemberInstance mi,
Context context)
|
ClassType |
JoinPoint()
|
ClassType |
JoinPointStaticPart()
|
ClassType |
NoAspectBound()
|
java.util.List |
overrides(MethodInstance mi)
|
MethodInstance |
pointcutInstance(Position pos,
ReferenceType container,
Flags flags,
Type returnType,
java.lang.String name,
java.util.List argTypes,
java.util.List excTypes)
|
boolean |
refHostOfITD(AJContext c,
MemberInstance mi)
Disambiguation of references to fields and methods that do *not* have an explicit target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassType JOINPOINT_
protected ClassType NOASPECTBOUND_
protected final Flags ASPECT_FLAGS
protected final Flags MEMBER_CLASS_FLAGS
protected final Flags AJ_METHOD_FLAGS
protected final Flags POINTCUT_FLAGS
Constructor Detail |
---|
public AJTypeSystem_c()
Method Detail |
---|
public void initialize(LoadedClassResolver loadedResolver, ExtensionInfo extInfo) throws SemanticException
SemanticException
public ClassType JoinPoint()
JoinPoint
in interface AJTypeSystem
public ClassType JoinPointStaticPart()
JoinPointStaticPart
in interface AJTypeSystem
public ClassType NoAspectBound()
NoAspectBound
in interface AJTypeSystem
public void checkTopLevelClassFlags(Flags f) throws SemanticException
SemanticException
public MethodInstance adviceInstance(Position pos, ReferenceType container, Flags flags, Type returnType, java.lang.String name, java.util.List argTypes, java.util.List excTypes, AdviceSpec spec)
adviceInstance
in interface AJTypeSystem
public MethodInstance pointcutInstance(Position pos, ReferenceType container, Flags flags, Type returnType, java.lang.String name, java.util.List argTypes, java.util.List excTypes)
pointcutInstance
in interface AJTypeSystem
public FieldInstance interTypeFieldInstance(Position pos, java.lang.String id, ClassType origin, ReferenceType container, Flags flags, Type type, java.lang.String name)
interTypeFieldInstance
in interface AJTypeSystem
public MethodInstance interTypeMethodInstance(Position pos, java.lang.String id, ClassType origin, ReferenceType container, Flags flags, Flags oflags, Type returnType, java.lang.String name, java.util.List argTypes, java.util.List excTypes)
interTypeMethodInstance
in interface AJTypeSystem
public ConstructorInstance interTypeConstructorInstance(Position pos, java.lang.String id, ClassType origin, ClassType container, Flags flags, java.util.List argTypes, java.util.List excTypes)
interTypeConstructorInstance
in interface AJTypeSystem
protected boolean classAccessible(ClassType targetClass, ClassType contextClass)
public boolean isAccessible(MemberInstance mi, Context context)
public boolean isAccessibleIgnorePrivileged(MemberInstance mi, Context context)
isAccessibleIgnorePrivileged
in interface AJTypeSystem
public boolean refHostOfITD(AJContext c, MemberInstance mi)
refHostOfITD
in interface AJTypeSystem
public Context createContext()
public void checkMemberClassFlags(Flags f) throws SemanticException
SemanticException
public FieldInstance findField(ReferenceType container, java.lang.String name, ClassType currClass) throws SemanticException
SemanticException
public java.util.List findFieldInstances(ReferenceType container, java.lang.String name) throws SemanticException
SemanticException
public void checkClassConformance(ClassType ct) throws SemanticException
ct
implements all abstract methods required;
that is, if it is a concrete class, then it must implement all
interfaces and abstract methods that it or it's superclasses declare, and if
it is an abstract class then any methods that it overrides are overridden
correctly.
SemanticException
public void checkMethodFlags(Flags f) throws SemanticException
SemanticException
public void checkPointcutFlags(Flags f) throws SemanticException
checkPointcutFlags
in interface AJTypeSystem
SemanticException
public java.util.List findAcceptableMethods(ReferenceType container, java.lang.String name, java.util.List argTypes, ClassType currClass) throws SemanticException
SemanticException
public final AspectType createAspectType(Source fromSource, int perKind)
createAspectType
in interface AJTypeSystem
public AspectType createAspectType(LazyClassInitializer init, Source fromSource, int perKind)
public java.util.List overrides(MethodInstance mi)
public PointcutInstance_c findPointCutNamed(ClassType ct, java.lang.String name) throws SemanticException
findPointCutNamed
in interface AJTypeSystem
SemanticException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |