Package org.aspectj.bridge.context
Class CompilationAndWeavingContext
java.lang.Object
org.aspectj.bridge.context.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"
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContextToken
enteringPhase
(int phaseId, Object data) static String
Returns a string description of what the compiler/weaver is currently doingstatic 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
Forget about the context for the current threadstatic void
setMultiThreaded
(boolean mt)
-
Field Details
-
BATCH_BUILD
public static final int BATCH_BUILD- See Also:
-
INCREMENTAL_BUILD
public static final int INCREMENTAL_BUILD- See Also:
-
PROCESSING_COMPILATION_UNIT
public static final int PROCESSING_COMPILATION_UNIT- See Also:
-
RESOLVING_COMPILATION_UNIT
public static final int RESOLVING_COMPILATION_UNIT- See Also:
-
ANALYSING_COMPILATION_UNIT
public static final int ANALYSING_COMPILATION_UNIT- See Also:
-
GENERATING_UNWOVEN_CODE_FOR_COMPILATION_UNIT
public static final int GENERATING_UNWOVEN_CODE_FOR_COMPILATION_UNIT- See Also:
-
COMPLETING_TYPE_BINDINGS
public static final int COMPLETING_TYPE_BINDINGS- See Also:
-
PROCESSING_DECLARE_PARENTS
public static final int PROCESSING_DECLARE_PARENTS- See Also:
-
CHECK_AND_SET_IMPORTS
public static final int CHECK_AND_SET_IMPORTS- See Also:
-
CONNECTING_TYPE_HIERARCHY1
public static final int CONNECTING_TYPE_HIERARCHY1- See Also:
-
BUILDING_FIELDS_AND_METHODS
public static final int BUILDING_FIELDS_AND_METHODS- See Also:
-
COLLECTING_ITDS_AND_DECLARES
public static final int COLLECTING_ITDS_AND_DECLARES- See Also:
-
PROCESSING_DECLARE_ANNOTATIONS
public static final int PROCESSING_DECLARE_ANNOTATIONS- See Also:
-
WEAVING_INTERTYPE_DECLARATIONS
public static final int WEAVING_INTERTYPE_DECLARATIONS- See Also:
-
RESOLVING_POINTCUT_DECLARATIONS
public static final int RESOLVING_POINTCUT_DECLARATIONS- See Also:
-
ADDING_DECLARE_WARNINGS_AND_ERRORS
public static final int ADDING_DECLARE_WARNINGS_AND_ERRORS- See Also:
-
VALIDATING_AT_ASPECTJ_ANNOTATIONS
public static final int VALIDATING_AT_ASPECTJ_ANNOTATIONS- See Also:
-
ACCESS_FOR_INLINE
public static final int ACCESS_FOR_INLINE- See Also:
-
ADDING_AT_ASPECTJ_ANNOTATIONS
public static final int ADDING_AT_ASPECTJ_ANNOTATIONS- See Also:
-
FIXING_SUPER_CALLS_IN_ITDS
public static final int FIXING_SUPER_CALLS_IN_ITDS- See Also:
-
FIXING_SUPER_CALLS
public static final int FIXING_SUPER_CALLS- See Also:
-
OPTIMIZING_THIS_JOIN_POINT_CALLS
public static final int OPTIMIZING_THIS_JOIN_POINT_CALLS- See Also:
-
CONNECTING_TYPE_HIERARCHY2
public static final int CONNECTING_TYPE_HIERARCHY2- See Also:
-
WEAVING
public static final int WEAVING- See Also:
-
PROCESSING_REWEAVABLE_STATE
public static final int PROCESSING_REWEAVABLE_STATE- See Also:
-
PROCESSING_TYPE_MUNGERS
public static final int PROCESSING_TYPE_MUNGERS- See Also:
-
WEAVING_ASPECTS
public static final int WEAVING_ASPECTS- See Also:
-
WEAVING_CLASSES
public static final int WEAVING_CLASSES- See Also:
-
WEAVING_TYPE
public static final int WEAVING_TYPE- See Also:
-
MATCHING_SHADOW
public static final int MATCHING_SHADOW- See Also:
-
IMPLEMENTING_ON_SHADOW
public static final int IMPLEMENTING_ON_SHADOW- See Also:
-
MATCHING_POINTCUT
public static final int MATCHING_POINTCUT- See Also:
-
MUNGING_WITH
public static final int MUNGING_WITH- See Also:
-
PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY
public static final int PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY- See Also:
-
PHASE_NAMES
-
-
Method Details
-
reset
public static void reset() -
setMultiThreaded
public static void setMultiThreaded(boolean mt) -
registerFormatter
-
getCurrentContext
Returns a string description of what the compiler/weaver is currently doing -
enteringPhase
-
leavingPhase
Exit a phase, all stack entries from the one with the given token down will be removed. -
resetForThread
public static void resetForThread()Forget about the context for the current thread
-