org.eclipse.xtend.backend.aop
Class ExecutionPointcut

java.lang.Object
  extended by org.eclipse.xtend.backend.aop.ExecutionPointcut
All Implemented Interfaces:
Pointcut

public final class ExecutionPointcut
extends java.lang.Object
implements Pointcut

Author:
Arno Haase (http://www.haase-consulting.com)

Constructor Summary
ExecutionPointcut(java.lang.String functionNamePattern, java.util.List<Pair<java.lang.String,AdviceParamType>> paramTypes, boolean hasVarArgs, AdviceParamType varArgsType)
           
 
Method Summary
 java.lang.String getFunctionNamePattern()
           
 java.util.List<Pair<java.lang.String,AdviceParamType>> getParamTypes()
           
 AdviceParamType getVarArgsType()
           
 boolean isHasVarArgs()
           
 boolean matches(QualifiedName name, Function function)
          checks if this pointcut matches a given function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionPointcut

public ExecutionPointcut(java.lang.String functionNamePattern,
                         java.util.List<Pair<java.lang.String,AdviceParamType>> paramTypes,
                         boolean hasVarArgs,
                         AdviceParamType varArgsType)
Parameters:
functionNamePattern - is the pattern for the function name that is matched by this pointcut. '*' can be used as a wildcard.
paramTypes - this is the - optionally empty - list of parameters for which an explicit type is given.
hasVarArgs - this flag determines if there is a variable number of arguments after the explicitly given param types. One of the two extreme cases is that all parameters are explicitly given, then this flag is false. The other extreme case is that the pointcut regardless of
varArgsType -
Method Detail

matches

public boolean matches(QualifiedName name,
                       Function function)
Description copied from interface: Pointcut
checks if this pointcut matches a given function

Specified by:
matches in interface Pointcut

getParamTypes

public java.util.List<Pair<java.lang.String,AdviceParamType>> getParamTypes()
Specified by:
getParamTypes in interface Pointcut

getFunctionNamePattern

public java.lang.String getFunctionNamePattern()

isHasVarArgs

public boolean isHasVarArgs()

getVarArgsType

public AdviceParamType getVarArgsType()