Top Description Inners Fields Constructors Methods
org.aspectj.weaver.internal.tools

public Class StandardPointcutExpressionImpl

extends Object
implements StandardPointcutExpression
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.tools.StandardPointcutExpression
Imports
java.lang.reflect.Constructor, .Member, org.aspectj.weaver.ResolvedMember, .ResolvedType, .Shadow, .World, org.aspectj.weaver.ast.Literal, .Test, org.aspectj.weaver.patterns.AbstractPatternNodeVisitor, .AnnotationPointcut, .ArgsAnnotationPointcut, .ArgsPointcut, .CflowPointcut, .ExposedState, .IfPointcut, .NotAnnotationTypePattern, .NotPointcut, .Pointcut, .ThisOrTargetAnnotationPointcut, .ThisOrTargetPointcut, .WithinAnnotationPointcut, .WithinCodeAnnotationPointcut, org.aspectj.weaver.reflect.ReflectionFastMatchInfo, .StandardShadow, .StandardShadowMatchImpl, org.aspectj.weaver.tools.DefaultMatchingContext, .MatchingContext, .PointcutParameter, .ShadowMatch, .StandardPointcutExpression

Map from weaver.tools interface to internal Pointcut implementation...

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
private String
private MatchingContext
private PointcutParameter[]
private Pointcut
private World

Constructor Summary

AccessConstructor and Description
public
StandardPointcutExpressionImpl(Pointcut pointcut, String expression, PointcutParameter[] params, World inWorld)

Method Summary

Modifier and TypeMethod and Description
public boolean
couldMatchJoinPointsInType(Class<T>
the candidate class
aClass
)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.couldMatchJoinPointsInType.

Determine whether or not this pointcut could ever match a join point in the given class.
private ExposedState
public String
getPointcutExpression()

Implements org.aspectj.weaver.tools.StandardPointcutExpression.getPointcutExpression.

Return a string representation of this pointcut expression.
private StandardShadowMatchImpl
public Pointcut
public ShadowMatch
private ShadowMatch
public ShadowMatch
matchesMethodCall(ResolvedMember
the method being called
aMethod
,
ResolvedMember
the Method or Constructor from within which the call is made
withinCode
)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.matchesMethodCall.

Determine whether or not this pointcut matches a method call to the given method, made during the execution of the given method or constructor.
public ShadowMatch
matchesMethodExecution(ResolvedMember
the method being executed
aMethod
)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.matchesMethodExecution.

Determine whether or not this pointcut matches the execution of a given method.
public ShadowMatch
matchesStaticInitialization(ResolvedType
the class being statically initialized
aType
)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.matchesStaticInitialization.

Determine whether or not this pointcut matches the static initialization of the given class.
public boolean
mayNeedDynamicTest()

Implements org.aspectj.weaver.tools.StandardPointcutExpression.mayNeedDynamicTest.

Returns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args)
public void
setMatchingContext(MatchingContext aMatchContext)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.setMatchingContext.

Set the matching context to be used for subsequent calls to match.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expressionback to summary
private String expression
matchContextback to summary
private MatchingContext matchContext
parametersback to summary
private PointcutParameter[] parameters
pointcutback to summary
private Pointcut pointcut
worldback to summary
private World world

Constructor Detail

StandardPointcutExpressionImplback to summary
public StandardPointcutExpressionImpl(Pointcut pointcut, String expression, PointcutParameter[] params, World inWorld)

Method Detail

couldMatchJoinPointsInTypeback to summary
public boolean couldMatchJoinPointsInType(Class<T> aClass)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.couldMatchJoinPointsInType.

Doc from org.aspectj.weaver.tools.StandardPointcutExpression.couldMatchJoinPointsInType.

Determine whether or not this pointcut could ever match a join point in the given class.

Parameters
aClass:Class<T>

the candidate class

Returns:boolean

true iff this pointcut may match a join point within(aClass), and false otherwise

getExposedStateback to summary
private ExposedState getExposedState()
getPointcutExpressionback to summary
public String getPointcutExpression()

Implements org.aspectj.weaver.tools.StandardPointcutExpression.getPointcutExpression.

Doc from org.aspectj.weaver.tools.StandardPointcutExpression.getPointcutExpression.

Return a string representation of this pointcut expression.

getShadowMatchback to summary
private StandardShadowMatchImpl getShadowMatch(Shadow forShadow)
getUnderlyingPointcutback to summary
public Pointcut getUnderlyingPointcut()
matchesConstructorExecutionback to summary
public ShadowMatch matchesConstructorExecution(Constructor<T> aConstructor)
matchesExecutionback to summary
private ShadowMatch matchesExecution(ResolvedMember aMember)
matchesMethodCallback to summary
public ShadowMatch matchesMethodCall(ResolvedMember aMethod, ResolvedMember withinCode)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.matchesMethodCall.

Doc from org.aspectj.weaver.tools.StandardPointcutExpression.matchesMethodCall.

Determine whether or not this pointcut matches a method call to the given method, made during the execution of the given method or constructor.

Parameters
aMethod:ResolvedMember

the method being called

withinCode:ResolvedMember

the Method or Constructor from within which the call is made

Returns:ShadowMatch

a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing a call to this method during the execution of the given member.

matchesMethodExecutionback to summary
public ShadowMatch matchesMethodExecution(ResolvedMember aMethod)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.matchesMethodExecution.

Doc from org.aspectj.weaver.tools.StandardPointcutExpression.matchesMethodExecution.

Determine whether or not this pointcut matches the execution of a given method.

Parameters
aMethod:ResolvedMember

the method being executed

Returns:ShadowMatch

a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the method.

matchesStaticInitializationback to summary
public ShadowMatch matchesStaticInitialization(ResolvedType aType)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.matchesStaticInitialization.

Doc from org.aspectj.weaver.tools.StandardPointcutExpression.matchesStaticInitialization.

Determine whether or not this pointcut matches the static initialization of the given class.

Parameters
aType:ResolvedType

the class being statically initialized

Returns:ShadowMatch

a ShadowMatch indicating whether the pointcut always, sometimes, or never matchs join points representing the static initialization of the given type

mayNeedDynamicTestback to summary
public boolean mayNeedDynamicTest()

Implements org.aspectj.weaver.tools.StandardPointcutExpression.mayNeedDynamicTest.

Doc from org.aspectj.weaver.tools.StandardPointcutExpression.mayNeedDynamicTest.

Returns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args)

setMatchingContextback to summary
public void setMatchingContext(MatchingContext aMatchContext)

Implements org.aspectj.weaver.tools.StandardPointcutExpression.setMatchingContext.

Doc from org.aspectj.weaver.tools.StandardPointcutExpression.setMatchingContext.

Set the matching context to be used for subsequent calls to match.

org.aspectj.weaver.internal.tools back to summary

public Class StandardPointcutExpressionImpl.Handler

extends Object
implements Member
Class Inheritance
  • java.lang.Object
  • org.aspectj.weaver.internal.tools.StandardPointcutExpressionImpl.Handler
All Implemented Interfaces
java.lang.reflect.Member

Field Summary

Modifier and TypeField and Description
private Class<?>
private Class<?>

Constructor Summary

AccessConstructor and Description
public
Handler(Class<T> decClass, Class<T> exType)

Method Summary

Modifier and TypeMethod and Description
public Class<T>
getDeclaringClass()

Implements java.lang.reflect.Member.getDeclaringClass.

Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
public Class<T>
public int
getModifiers()

Implements java.lang.reflect.Member.getModifiers.

Returns the Java language modifiers for the member or constructor represented by this Member, as an integer.
public String
getName()

Implements java.lang.reflect.Member.getName.

Returns the simple name of the underlying member or constructor represented by this Member.
public boolean
isSynthetic()

Implements java.lang.reflect.Member.isSynthetic.

Returns true if this member was introduced by the compiler; returns false otherwise.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

decClassback to summary
private Class<?> decClass
exTypeback to summary
private Class<?> exType

Constructor Detail

Handlerback to summary
public Handler(Class<T> decClass, Class<T> exType)

Method Detail

getDeclaringClassback to summary
public Class<T> getDeclaringClass()

Implements java.lang.reflect.Member.getDeclaringClass.

Doc from java.lang.reflect.Member.getDeclaringClass.

Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.

Returns:Class<T>

an object representing the declaring class of the underlying member

getHandledExceptionTypeback to summary
public Class<T> getHandledExceptionType()
getModifiersback to summary
public int getModifiers()

Implements java.lang.reflect.Member.getModifiers.

Doc from java.lang.reflect.Member.getModifiers.

Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. The Modifier class should be used to decode the modifiers in the integer.

Returns:int

the Java language modifiers for the underlying member

getNameback to summary
public String getName()

Implements java.lang.reflect.Member.getName.

Doc from java.lang.reflect.Member.getName.

Returns the simple name of the underlying member or constructor represented by this Member.

Returns:String

the simple name of the underlying member

isSyntheticback to summary
public boolean isSynthetic()

Implements java.lang.reflect.Member.isSynthetic.

Doc from java.lang.reflect.Member.isSynthetic.

Returns true if this member was introduced by the compiler; returns false otherwise.

Returns:boolean

true if and only if this member was introduced by the compiler.

org.aspectj.weaver.internal.tools back to summary

private Class StandardPointcutExpressionImpl.HasPossibleDynamicContentVisitor

extends AbstractPatternNodeVisitor
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
Inherited from org.aspectj.weaver.patterns.AbstractPatternNodeVisitor:
visitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisitvisit

Field Detail

hasDynamicContentback to summary
private boolean hasDynamicContent

Constructor Detail

HasPossibleDynamicContentVisitorback to summary
private HasPossibleDynamicContentVisitor()

Method Detail

hasDynamicContentback to summary
public boolean hasDynamicContent()
visitback to summary
public Object visit(WithinAnnotationPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(WithinCodeAnnotationPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(AnnotationPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(ArgsAnnotationPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(ArgsPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(CflowPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(IfPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(NotAnnotationTypePattern node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(NotPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(ThisOrTargetAnnotationPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override
visitback to summary
public Object visit(ThisOrTargetPointcut node, Object data)

Overrides org.aspectj.weaver.patterns.AbstractPatternNodeVisitor.visit.

Implements org.aspectj.weaver.patterns.PatternNodeVisitor.visit.

Annotations
@Override