Klasse PointcutExpressionImpl

java.lang.Object
org.aspectj.weaver.internal.tools.PointcutExpressionImpl
Alle implementierten Schnittstellen:
PointcutExpression

public class PointcutExpressionImpl extends Object implements PointcutExpression
Map from weaver.tools interface to internal Pointcut implementation...
  • Konstruktordetails

  • Methodendetails

    • getUnderlyingPointcut

      public Pointcut getUnderlyingPointcut()
    • setMatchingContext

      public void setMatchingContext(MatchingContext aMatchContext)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Set the matching context to be used for subsequent calls to match.
      Angegeben von:
      setMatchingContext in Schnittstelle PointcutExpression
      Siehe auch:
    • couldMatchJoinPointsInType

      public boolean couldMatchJoinPointsInType(Class aClass)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut could ever match a join point in the given class.
      Angegeben von:
      couldMatchJoinPointsInType in Schnittstelle PointcutExpression
      Parameter:
      aClass - the candidate class
      Gibt zurück:
      true iff this pointcut may match a join point within(aClass), and false otherwise
    • mayNeedDynamicTest

      public boolean mayNeedDynamicTest()
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Returns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args)
      Angegeben von:
      mayNeedDynamicTest in Schnittstelle PointcutExpression
    • matchesMethodExecution

      public ShadowMatch matchesMethodExecution(Method aMethod)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the execution of a given method.
      Angegeben von:
      matchesMethodExecution in Schnittstelle PointcutExpression
      Parameter:
      aMethod - the method being executed
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the method.
    • matchesConstructorExecution

      public ShadowMatch matchesConstructorExecution(Constructor aConstructor)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the execution of a given constructor.
      Angegeben von:
      matchesConstructorExecution in Schnittstelle PointcutExpression
      Parameter:
      aConstructor - the constructor being executed
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the constructor.
    • matchesStaticInitialization

      public ShadowMatch matchesStaticInitialization(Class aClass)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the static initialization of the given class.
      Angegeben von:
      matchesStaticInitialization in Schnittstelle PointcutExpression
      Parameter:
      aClass - the class being statically initialized
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matchs join points representing the static initialization of the given type
    • matchesAdviceExecution

      public ShadowMatch matchesAdviceExecution(Method aMethod)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the execution of a given piece of advice.
      Angegeben von:
      matchesAdviceExecution in Schnittstelle PointcutExpression
      Parameter:
      aMethod - a method representing the advice being executed
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the advice.
    • matchesInitialization

      public ShadowMatch matchesInitialization(Constructor aConstructor)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the initialization of an object initiated by a call to the given constructor.
      Angegeben von:
      matchesInitialization in Schnittstelle PointcutExpression
      Parameter:
      aConstructor - the constructor initiating the initialization
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing initialization via the given constructor.
    • matchesPreInitialization

      public ShadowMatch matchesPreInitialization(Constructor aConstructor)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the pre-initialization of an object initiated by a call to the given constructor.
      Angegeben von:
      matchesPreInitialization in Schnittstelle PointcutExpression
      Parameter:
      aConstructor - the constructor initiating the initialization
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing pre-initialization via the given constructor.
    • matchesMethodCall

      public ShadowMatch matchesMethodCall(Method aMethod, Member withinCode)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a method call to the given method, made during the execution of the given method or constructor.
      Angegeben von:
      matchesMethodCall in Schnittstelle PointcutExpression
      Parameter:
      aMethod - the method being called
      withinCode - the Method or Constructor from within which the call is made
      Gibt zurück:
      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.
    • matchesMethodCall

      public ShadowMatch matchesMethodCall(Method aMethod, Class callerType)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a method call to the given method, made outside of the scope of any method or constructor, but within the callerType (for example, during static initialization of the type).
      Angegeben von:
      matchesMethodCall in Schnittstelle PointcutExpression
      Parameter:
      aMethod - the method being called
      callerType - the declared type of the caller
      Gibt zurück:
      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.
    • matchesConstructorCall

      public ShadowMatch matchesConstructorCall(Constructor aConstructor, Class callerType)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a method call to the given constructor, made outside of the scope of any method or constructor, but within the callerType.
      Angegeben von:
      matchesConstructorCall in Schnittstelle PointcutExpression
      Parameter:
      aConstructor - the cosstructor being called
      callerType - the declared type of the caller
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing a call to this constructor during the execution of the given member.
    • matchesConstructorCall

      public ShadowMatch matchesConstructorCall(Constructor aConstructor, Member withinCode)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a method call to the given constructor, made during the execution of the given method or constructor.
      Angegeben von:
      matchesConstructorCall in Schnittstelle PointcutExpression
      Parameter:
      aConstructor - the constructor being called
      withinCode - the Method or Constructor from within which the call is made
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing a call to this constructor during the execution of the given member.
    • matchesHandler

      public ShadowMatch matchesHandler(Class exceptionType, Class handlingType)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the execution of a given exception handler outside of the scope of any method or constructor, but within the handling type.
      Angegeben von:
      matchesHandler in Schnittstelle PointcutExpression
      Parameter:
      exceptionType - the static type of the exception being handled
      handlingType - the type in which the handler block is executing
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the handling of the given exception
    • matchesHandler

      public ShadowMatch matchesHandler(Class exceptionType, Member withinCode)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches the execution of a given exception handler within the given method or constructor
      Angegeben von:
      matchesHandler in Schnittstelle PointcutExpression
      Parameter:
      exceptionType - the static type of the exception being handled
      withinCode - the method or constructor in which the catch block is declared
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the handling of the given exception
    • matchesFieldGet

      public ShadowMatch matchesFieldGet(Field aField, Class withinType)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a get of the given field outside of the scope of any method or constructor, but within the given type (for example, during static initialization).
      Angegeben von:
      matchesFieldGet in Schnittstelle PointcutExpression
      Parameter:
      aField - the field being accessed
      withinType - the type owning the call site
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field get join points for the given field and call site.
    • matchesFieldGet

      public ShadowMatch matchesFieldGet(Field aField, Member withinCode)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a get of the given field from within the given method or constructor.
      Angegeben von:
      matchesFieldGet in Schnittstelle PointcutExpression
      Parameter:
      aField - the field being updated
      withinCode - the Method or Constructor owning the call site
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field get join points for the given field and call site.
    • matchesFieldSet

      public ShadowMatch matchesFieldSet(Field aField, Class withinType)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a set of the given field outside of the scope of any method or constructor, but within the given type (for example, during static initialization).
      Angegeben von:
      matchesFieldSet in Schnittstelle PointcutExpression
      Parameter:
      aField - the field being updated
      withinType - the type owning the call site
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field set join points for the given field and call site.
    • matchesFieldSet

      public ShadowMatch matchesFieldSet(Field aField, Member withinCode)
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Determine whether or not this pointcut matches a set of the given field from within the given method or constructor.
      Angegeben von:
      matchesFieldSet in Schnittstelle PointcutExpression
      Parameter:
      aField - the field being updated
      withinCode - the Method or Constructor owning the call site
      Gibt zurück:
      a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field set join points for the given field and call site.
    • getPointcutExpression

      public String getPointcutExpression()
      Beschreibung aus Schnittstelle kopiert: PointcutExpression
      Return a string representation of this pointcut expression.
      Angegeben von:
      getPointcutExpression in Schnittstelle PointcutExpression