Package org.aspectj.weaver
Class World
- java.lang.Object
-
- org.aspectj.weaver.World
-
- All Implemented Interfaces:
Dump.INode
- Direct Known Subclasses:
BcelWorld,ReflectionWorld
public abstract class World extends Object implements Dump.INode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorld.TypeMap
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedWorld()
-
Method Summary
-
-
-
Field Detail
-
typeMap
protected World.TypeMap typeMap
-
createInjarHierarchy
public static boolean createInjarHierarchy
-
RUNTIME_LEVEL_DEFAULT
public static final RuntimeVersion RUNTIME_LEVEL_DEFAULT
-
bcelRepositoryCaching
protected boolean bcelRepositoryCaching
-
forDEBUG_structuralChangesCode
public boolean forDEBUG_structuralChangesCode
-
forDEBUG_bridgingCode
public boolean forDEBUG_bridgingCode
-
optimizedMatching
public boolean optimizedMatching
-
generateNewLvts
public boolean generateNewLvts
-
timersPerJoinpoint
protected long timersPerJoinpoint
-
timersPerType
protected long timersPerType
-
infoMessagesEnabled
public int infoMessagesEnabled
-
BYTE
public final org.aspectj.weaver.ResolvedType.Primitive BYTE
-
CHAR
public final org.aspectj.weaver.ResolvedType.Primitive CHAR
-
DOUBLE
public final org.aspectj.weaver.ResolvedType.Primitive DOUBLE
-
FLOAT
public final org.aspectj.weaver.ResolvedType.Primitive FLOAT
-
INT
public final org.aspectj.weaver.ResolvedType.Primitive INT
-
LONG
public final org.aspectj.weaver.ResolvedType.Primitive LONG
-
SHORT
public final org.aspectj.weaver.ResolvedType.Primitive SHORT
-
BOOLEAN
public final org.aspectj.weaver.ResolvedType.Primitive BOOLEAN
-
VOID
public final org.aspectj.weaver.ResolvedType.Primitive VOID
-
xsetAVOID_FINAL
public static final String xsetAVOID_FINAL
- See Also:
- Constant Field Values
-
xsetWEAVE_JAVA_PACKAGES
public static final String xsetWEAVE_JAVA_PACKAGES
- See Also:
- Constant Field Values
-
xsetWEAVE_JAVAX_PACKAGES
public static final String xsetWEAVE_JAVAX_PACKAGES
- See Also:
- Constant Field Values
-
xsetCAPTURE_ALL_CONTEXT
public static final String xsetCAPTURE_ALL_CONTEXT
- See Also:
- Constant Field Values
-
xsetRUN_MINIMAL_MEMORY
public static final String xsetRUN_MINIMAL_MEMORY
- See Also:
- Constant Field Values
-
xsetDEBUG_STRUCTURAL_CHANGES_CODE
public static final String xsetDEBUG_STRUCTURAL_CHANGES_CODE
- See Also:
- Constant Field Values
-
xsetDEBUG_BRIDGING
public static final String xsetDEBUG_BRIDGING
- See Also:
- Constant Field Values
-
xsetTRANSIENT_TJP_FIELDS
public static final String xsetTRANSIENT_TJP_FIELDS
- See Also:
- Constant Field Values
-
xsetBCEL_REPOSITORY_CACHING
public static final String xsetBCEL_REPOSITORY_CACHING
- See Also:
- Constant Field Values
-
xsetPIPELINE_COMPILATION
public static final String xsetPIPELINE_COMPILATION
- See Also:
- Constant Field Values
-
xsetGENERATE_STACKMAPS
public static final String xsetGENERATE_STACKMAPS
- See Also:
- Constant Field Values
-
xsetPIPELINE_COMPILATION_DEFAULT
public static final String xsetPIPELINE_COMPILATION_DEFAULT
- See Also:
- Constant Field Values
-
xsetCOMPLETE_BINARY_TYPES
public static final String xsetCOMPLETE_BINARY_TYPES
- See Also:
- Constant Field Values
-
xsetCOMPLETE_BINARY_TYPES_DEFAULT
public static final String xsetCOMPLETE_BINARY_TYPES_DEFAULT
- See Also:
- Constant Field Values
-
xsetTYPE_DEMOTION
public static final String xsetTYPE_DEMOTION
- See Also:
- Constant Field Values
-
xsetTYPE_DEMOTION_DEBUG
public static final String xsetTYPE_DEMOTION_DEBUG
- See Also:
- Constant Field Values
-
xsetTYPE_REFS
public static final String xsetTYPE_REFS
- See Also:
- Constant Field Values
-
xsetBCEL_REPOSITORY_CACHING_DEFAULT
public static final String xsetBCEL_REPOSITORY_CACHING_DEFAULT
- See Also:
- Constant Field Values
-
xsetFAST_PACK_METHODS
public static final String xsetFAST_PACK_METHODS
- See Also:
- Constant Field Values
-
xsetOVERWEAVING
public static final String xsetOVERWEAVING
- See Also:
- Constant Field Values
-
xsetOPTIMIZED_MATCHING
public static final String xsetOPTIMIZED_MATCHING
- See Also:
- Constant Field Values
-
xsetTIMERS_PER_JOINPOINT
public static final String xsetTIMERS_PER_JOINPOINT
- See Also:
- Constant Field Values
-
xsetTIMERS_PER_FASTMATCH_CALL
public static final String xsetTIMERS_PER_FASTMATCH_CALL
- See Also:
- Constant Field Values
-
xsetITD_VERSION
public static final String xsetITD_VERSION
- See Also:
- Constant Field Values
-
xsetITD_VERSION_ORIGINAL
public static final String xsetITD_VERSION_ORIGINAL
- See Also:
- Constant Field Values
-
xsetITD_VERSION_2NDGEN
public static final String xsetITD_VERSION_2NDGEN
- See Also:
- Constant Field Values
-
xsetITD_VERSION_DEFAULT
public static final String xsetITD_VERSION_DEFAULT
- See Also:
- Constant Field Values
-
xsetMINIMAL_MODEL
public static final String xsetMINIMAL_MODEL
- See Also:
- Constant Field Values
-
xsetTARGETING_RUNTIME_1610
public static final String xsetTARGETING_RUNTIME_1610
- See Also:
- Constant Field Values
-
xsetGENERATE_NEW_LVTS
public static final String xsetGENERATE_NEW_LVTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public void accept(Dump.IVisitor visitor)
- Specified by:
acceptin interfaceDump.INode
-
resolve
public ResolvedType resolve(UnresolvedType ty)
-
resolve
public ResolvedType resolve(UnresolvedType ty, ISourceLocation isl)
-
resolve
public ResolvedType[] resolve(UnresolvedType[] types)
-
resolve
public ResolvedType resolve(UnresolvedType ty, boolean allowMissing)
-
completeBinaryType
protected void completeBinaryType(ResolvedType ret)
-
isLocallyDefined
public boolean isLocallyDefined(String classname)
-
resolve
public ResolvedType resolve(ResolvedType ty)
-
resolve
public ResolvedType resolve(String name)
-
resolveToReferenceType
public ReferenceType resolveToReferenceType(String name)
-
resolve
public ResolvedType resolve(String name, boolean allowMissing)
-
resolveGenericTypeFor
public ResolvedType resolveGenericTypeFor(UnresolvedType anUnresolvedType, boolean allowMissing)
-
resolveDelegate
protected abstract ReferenceTypeDelegate resolveDelegate(ReferenceType ty)
-
getCoreType
public ResolvedType getCoreType(UnresolvedType tx)
-
lookupOrCreateName
public ReferenceType lookupOrCreateName(UnresolvedType ty)
-
lookupBySignature
public ReferenceType lookupBySignature(String signature)
-
resolve
public ResolvedMember resolve(Member member)
-
setAllLintIgnored
public void setAllLintIgnored()
-
areAllLintIgnored
public boolean areAllLintIgnored()
-
getWeavingSupport
public abstract IWeavingSupport getWeavingSupport()
-
createAdviceMunger
public final Advice createAdviceMunger(AdviceKind kind, Pointcut p, Member signature, int extraParameterFlags, IHasSourceLocation loc, ResolvedType declaringAspect)
-
compareByPrecedence
public int compareByPrecedence(ResolvedType aspect1, ResolvedType aspect2)
-
getPrecedenceIfAny
public Integer getPrecedenceIfAny(ResolvedType aspect1, ResolvedType aspect2)
-
compareByPrecedenceAndHierarchy
public int compareByPrecedenceAndHierarchy(ResolvedType aspect1, ResolvedType aspect2)
-
getMessageHandler
public IMessageHandler getMessageHandler()
-
setMessageHandler
public void setMessageHandler(IMessageHandler messageHandler)
-
showMessage
public void showMessage(IMessage.Kind kind, String message, ISourceLocation loc1, ISourceLocation loc2)
-
setCrossReferenceHandler
public void setCrossReferenceHandler(ICrossReferenceHandler xrefHandler)
-
getCrossReferenceHandler
public ICrossReferenceHandler getCrossReferenceHandler()
-
setTypeVariableLookupScope
public void setTypeVariableLookupScope(TypeVariableDeclaringElement scope)
-
getTypeVariableLookupScope
public TypeVariableDeclaringElement getTypeVariableLookupScope()
-
getDeclareParents
public List<DeclareParents> getDeclareParents()
-
getDeclareAnnotationOnTypes
public List<DeclareAnnotation> getDeclareAnnotationOnTypes()
-
getDeclareAnnotationOnFields
public List<DeclareAnnotation> getDeclareAnnotationOnFields()
-
getDeclareAnnotationOnMethods
public List<DeclareAnnotation> getDeclareAnnotationOnMethods()
-
getDeclareTypeEows
public List<DeclareTypeErrorOrWarning> getDeclareTypeEows()
-
getDeclareSoft
public List<DeclareSoft> getDeclareSoft()
-
getCrosscuttingMembersSet
public CrosscuttingMembersSet getCrosscuttingMembersSet()
-
getModel
public IStructureModel getModel()
-
setModel
public void setModel(IStructureModel model)
-
getLint
public Lint getLint()
-
setLint
public void setLint(Lint lint)
-
isXnoInline
public boolean isXnoInline()
-
setXnoInline
public void setXnoInline(boolean xnoInline)
-
isXlazyTjp
public boolean isXlazyTjp()
-
setXlazyTjp
public void setXlazyTjp(boolean b)
-
isHasMemberSupportEnabled
public boolean isHasMemberSupportEnabled()
-
setXHasMemberSupportEnabled
public void setXHasMemberSupportEnabled(boolean b)
-
isInPinpointMode
public boolean isInPinpointMode()
-
setPinpointMode
public void setPinpointMode(boolean b)
-
useFinal
public boolean useFinal()
-
isMinimalModel
public boolean isMinimalModel()
-
isTargettingRuntime1_6_10
public boolean isTargettingRuntime1_6_10()
-
setBehaveInJava5Way
public void setBehaveInJava5Way(boolean b)
-
setTiming
public void setTiming(boolean timersOn, boolean reportPeriodically)
-
setErrorAndWarningThreshold
public void setErrorAndWarningThreshold(boolean errorThreshold, boolean warningThreshold)
-
isIgnoringUnusedDeclaredThrownException
public boolean isIgnoringUnusedDeclaredThrownException()
-
performExtraConfiguration
public void performExtraConfiguration(String config)
-
areInfoMessagesEnabled
public boolean areInfoMessagesEnabled()
-
getExtraConfiguration
public Properties getExtraConfiguration()
-
isInJava5Mode
public boolean isInJava5Mode()
-
isTimingEnabled
public boolean isTimingEnabled()
-
setTargetAspectjRuntimeLevel
public void setTargetAspectjRuntimeLevel(String s)
-
setOptionalJoinpoints
public void setOptionalJoinpoints(String jps)
-
isJoinpointArrayConstructionEnabled
public boolean isJoinpointArrayConstructionEnabled()
-
isJoinpointSynchronizationEnabled
public boolean isJoinpointSynchronizationEnabled()
-
getTargetAspectjRuntimeLevel
public RuntimeVersion getTargetAspectjRuntimeLevel()
-
isTargettingAspectJRuntime12
public boolean isTargettingAspectJRuntime12()
-
validateType
public void validateType(UnresolvedType type)
-
isDemotionActive
public boolean isDemotionActive()
-
getTypeVariablesCurrentlyBeingProcessed
public TypeVariable[] getTypeVariablesCurrentlyBeingProcessed(Class<?> baseClass)
-
recordTypeVariablesCurrentlyBeingProcessed
public void recordTypeVariablesCurrentlyBeingProcessed(Class<?> baseClass, TypeVariable[] typeVariables)
-
forgetTypeVariablesCurrentlyBeingProcessed
public void forgetTypeVariablesCurrentlyBeingProcessed(Class<?> baseClass)
-
setAddSerialVerUID
public void setAddSerialVerUID(boolean b)
-
isAddSerialVerUID
public boolean isAddSerialVerUID()
-
flush
public void flush()
-
ensureAdvancedConfigurationProcessed
public void ensureAdvancedConfigurationProcessed()
-
isRunMinimalMemory
public boolean isRunMinimalMemory()
-
isTransientTjpFields
public boolean isTransientTjpFields()
-
isRunMinimalMemorySet
public boolean isRunMinimalMemorySet()
-
shouldFastPackMethods
public boolean shouldFastPackMethods()
-
shouldPipelineCompilation
public boolean shouldPipelineCompilation()
-
shouldGenerateStackMaps
public boolean shouldGenerateStackMaps()
-
setIncrementalCompileCouldFollow
public void setIncrementalCompileCouldFollow(boolean b)
-
couldIncrementalCompileFollow
public boolean couldIncrementalCompileFollow()
-
setSynchronizationPointcutsInUse
public void setSynchronizationPointcutsInUse()
-
areSynchronizationPointcutsInUse
public boolean areSynchronizationPointcutsInUse()
-
registerPointcutHandler
public void registerPointcutHandler(PointcutDesignatorHandler designatorHandler)
-
getRegisteredPointcutHandlers
public Set<PointcutDesignatorHandler> getRegisteredPointcutHandlers()
-
reportMatch
public void reportMatch(ShadowMunger munger, Shadow shadow)
-
isOverWeaving
public boolean isOverWeaving()
-
isXmlConfigured
public boolean isXmlConfigured()
-
isAspectIncluded
public boolean isAspectIncluded(ResolvedType aspectType)
-
hasUnsatisfiedDependency
public boolean hasUnsatisfiedDependency(ResolvedType aspectType)
-
getAspectScope
public TypePattern getAspectScope(ResolvedType declaringType)
-
getFixed
public Map<String,ResolvedType> getFixed()
-
getExpendable
public Map<String,Reference<ResolvedType>> getExpendable()
-
demote
public void demote()
-
isExpendable
protected boolean isExpendable(ResolvedType type)
-
getExclusionMap
public Map<ResolvedType,Set<ResolvedType>> getExclusionMap()
-
record
public void record(Pointcut pointcut, long timetaken)
-
recordFastMatch
public void recordFastMatch(Pointcut pointcut, long timetaken)
-
reportTimers
public void reportTimers()
-
getTypeMap
public World.TypeMap getTypeMap()
-
reset
public static void reset()
-
getItdVersion
public int getItdVersion()
-
isLoadtimeWeaving
public abstract boolean isLoadtimeWeaving()
-
classWriteEvent
public void classWriteEvent(char[][] compoundName)
-
-