|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.bridge.context.CompilationAndWeavingContext
public class CompilationAndWeavingContext
This class is responsible for tracking progress through the various phases of compilation and weaving. When an exception occurs (or a message is issued, if desired), you can ask this class for a "stack trace" that gives information about what the compiler was doing at the time. The trace will say something like: "when matching pointcut xyz when matching shadow sss when weaving type ABC when weaving shadow mungers"
Method Summary | |
---|---|
static ContextToken |
enteringPhase(int phaseId,
java.lang.Object data)
|
static java.lang.String |
getCurrentContext()
Returns a string description of what the compiler/weaver is currently doing |
static void |
leavingPhase(ContextToken aToken)
Exit a phase, all stack entries from the one with the given token down will be removed. |
static void |
registerFormatter(int phaseId,
ContextFormatter aFormatter)
|
static void |
reset()
|
static void |
resetForThread()
Forget about the context for the current thread |
static void |
setMultiThreaded(boolean mt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BATCH_BUILD
public static final int INCREMENTAL_BUILD
public static final int PROCESSING_COMPILATION_UNIT
public static final int RESOLVING_COMPILATION_UNIT
public static final int ANALYSING_COMPILATION_UNIT
public static final int GENERATING_UNWOVEN_CODE_FOR_COMPILATION_UNIT
public static final int COMPLETING_TYPE_BINDINGS
public static final int PROCESSING_DECLARE_PARENTS
public static final int CHECK_AND_SET_IMPORTS
public static final int CONNECTING_TYPE_HIERARCHY
public static final int BUILDING_FIELDS_AND_METHODS
public static final int COLLECTING_ITDS_AND_DECLARES
public static final int PROCESSING_DECLARE_ANNOTATIONS
public static final int WEAVING_INTERTYPE_DECLARATIONS
public static final int RESOLVING_POINTCUT_DECLARATIONS
public static final int ADDING_DECLARE_WARNINGS_AND_ERRORS
public static final int VALIDATING_AT_ASPECTJ_ANNOTATIONS
public static final int ACCESS_FOR_INLINE
public static final int ADDING_AT_ASPECTJ_ANNOTATIONS
public static final int FIXING_SUPER_CALLS_IN_ITDS
public static final int FIXING_SUPER_CALLS
public static final int OPTIMIZING_THIS_JOIN_POINT_CALLS
public static final int WEAVING
public static final int PROCESSING_REWEAVABLE_STATE
public static final int PROCESSING_TYPE_MUNGERS
public static final int WEAVING_ASPECTS
public static final int WEAVING_CLASSES
public static final int WEAVING_TYPE
public static final int MATCHING_SHADOW
public static final int IMPLEMENTING_ON_SHADOW
public static final int MATCHING_POINTCUT
public static final int MUNGING_WITH
public static final int PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY
public static final java.lang.String[] PHASE_NAMES
Method Detail |
---|
public static void reset()
public static void setMultiThreaded(boolean mt)
public static void registerFormatter(int phaseId, ContextFormatter aFormatter)
public static java.lang.String getCurrentContext()
public static ContextToken enteringPhase(int phaseId, java.lang.Object data)
public static void leavingPhase(ContextToken aToken)
public static void resetForThread()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |