Package org.aspectj.bridge.context
Klasse 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"
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic 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
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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)
-
Felddetails
-
BATCH_BUILD
public static final int BATCH_BUILD- Siehe auch:
-
INCREMENTAL_BUILD
public static final int INCREMENTAL_BUILD- Siehe auch:
-
PROCESSING_COMPILATION_UNIT
public static final int PROCESSING_COMPILATION_UNIT- Siehe auch:
-
RESOLVING_COMPILATION_UNIT
public static final int RESOLVING_COMPILATION_UNIT- Siehe auch:
-
ANALYSING_COMPILATION_UNIT
public static final int ANALYSING_COMPILATION_UNIT- Siehe auch:
-
GENERATING_UNWOVEN_CODE_FOR_COMPILATION_UNIT
public static final int GENERATING_UNWOVEN_CODE_FOR_COMPILATION_UNIT- Siehe auch:
-
COMPLETING_TYPE_BINDINGS
public static final int COMPLETING_TYPE_BINDINGS- Siehe auch:
-
PROCESSING_DECLARE_PARENTS
public static final int PROCESSING_DECLARE_PARENTS- Siehe auch:
-
CHECK_AND_SET_IMPORTS
public static final int CHECK_AND_SET_IMPORTS- Siehe auch:
-
CONNECTING_TYPE_HIERARCHY
public static final int CONNECTING_TYPE_HIERARCHY- Siehe auch:
-
BUILDING_FIELDS_AND_METHODS
public static final int BUILDING_FIELDS_AND_METHODS- Siehe auch:
-
COLLECTING_ITDS_AND_DECLARES
public static final int COLLECTING_ITDS_AND_DECLARES- Siehe auch:
-
PROCESSING_DECLARE_ANNOTATIONS
public static final int PROCESSING_DECLARE_ANNOTATIONS- Siehe auch:
-
WEAVING_INTERTYPE_DECLARATIONS
public static final int WEAVING_INTERTYPE_DECLARATIONS- Siehe auch:
-
RESOLVING_POINTCUT_DECLARATIONS
public static final int RESOLVING_POINTCUT_DECLARATIONS- Siehe auch:
-
ADDING_DECLARE_WARNINGS_AND_ERRORS
public static final int ADDING_DECLARE_WARNINGS_AND_ERRORS- Siehe auch:
-
VALIDATING_AT_ASPECTJ_ANNOTATIONS
public static final int VALIDATING_AT_ASPECTJ_ANNOTATIONS- Siehe auch:
-
ACCESS_FOR_INLINE
public static final int ACCESS_FOR_INLINE- Siehe auch:
-
ADDING_AT_ASPECTJ_ANNOTATIONS
public static final int ADDING_AT_ASPECTJ_ANNOTATIONS- Siehe auch:
-
FIXING_SUPER_CALLS_IN_ITDS
public static final int FIXING_SUPER_CALLS_IN_ITDS- Siehe auch:
-
FIXING_SUPER_CALLS
public static final int FIXING_SUPER_CALLS- Siehe auch:
-
OPTIMIZING_THIS_JOIN_POINT_CALLS
public static final int OPTIMIZING_THIS_JOIN_POINT_CALLS- Siehe auch:
-
WEAVING
public static final int WEAVING- Siehe auch:
-
PROCESSING_REWEAVABLE_STATE
public static final int PROCESSING_REWEAVABLE_STATE- Siehe auch:
-
PROCESSING_TYPE_MUNGERS
public static final int PROCESSING_TYPE_MUNGERS- Siehe auch:
-
WEAVING_ASPECTS
public static final int WEAVING_ASPECTS- Siehe auch:
-
WEAVING_CLASSES
public static final int WEAVING_CLASSES- Siehe auch:
-
WEAVING_TYPE
public static final int WEAVING_TYPE- Siehe auch:
-
MATCHING_SHADOW
public static final int MATCHING_SHADOW- Siehe auch:
-
IMPLEMENTING_ON_SHADOW
public static final int IMPLEMENTING_ON_SHADOW- Siehe auch:
-
MATCHING_POINTCUT
public static final int MATCHING_POINTCUT- Siehe auch:
-
MUNGING_WITH
public static final int MUNGING_WITH- Siehe auch:
-
PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY
public static final int PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY- Siehe auch:
-
PHASE_NAMES
-
-
Methodendetails
-
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
-