类 JdkRegexpMethodPointcut
java.lang.Object
cn.taketoday.core.OrderedSupport
cn.taketoday.aop.support.StaticMethodMatcher
cn.taketoday.aop.support.StaticMethodMatcherPointcut
cn.taketoday.aop.support.AbstractRegexpMethodPointcut
cn.taketoday.aop.support.JdkRegexpMethodPointcut
- 所有已实现的接口:
MethodMatcher,Pointcut,Ordered,Serializable
Regular expression pointcut based on the
java.util.regex package.
Supports the following JavaBean properties:
- pattern: regular expression for the fully-qualified method names to match
- patterns: alternative property taking a String array of patterns. The result will be the union of these patterns.
Note: the regular expressions must be a match. For example,
.*get.* will match com.mycom.Foo.getBar().
get.* will not.
- 从以下版本开始:
- 3.0
- 作者:
- Dmitriy Kopylenko, Rob Harrop, TODAY 2021/2/4 12:20
- 另请参阅:
-
字段概要
从类继承的字段 cn.taketoday.core.OrderedSupport
order从接口继承的字段 cn.taketoday.aop.MethodMatcher
TRUE从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidinitExcludedPatternRepresentation(String[] excludedPatterns) Initialize exclusionPatternsfrom the suppliedString[].protected voidinitPatternRepresentation(String[] patterns) InitializePatternsfrom the suppliedString[].protected booleanprotected booleanmatchesExclusion(String candidate, int patternIndex) 从类继承的方法 cn.taketoday.aop.support.AbstractRegexpMethodPointcut
equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString从类继承的方法 cn.taketoday.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter从类继承的方法 cn.taketoday.aop.support.StaticMethodMatcher
isRuntime, matches从类继承的方法 cn.taketoday.core.OrderedSupport
getOrder, setOrder
-
构造器详细资料
-
JdkRegexpMethodPointcut
public JdkRegexpMethodPointcut()
-
-
方法详细资料
-
initPatternRepresentation
InitializePatternsfrom the suppliedString[].- 指定者:
initPatternRepresentation在类中AbstractRegexpMethodPointcut- 参数:
patterns- the patterns to initialize- 抛出:
PatternSyntaxException
-
initExcludedPatternRepresentation
protected void initExcludedPatternRepresentation(String[] excludedPatterns) throws PatternSyntaxException Initialize exclusionPatternsfrom the suppliedString[].- 指定者:
initExcludedPatternRepresentation在类中AbstractRegexpMethodPointcut- 参数:
excludedPatterns- the patterns to initialize- 抛出:
PatternSyntaxException
-
matches
- 指定者:
matches在类中AbstractRegexpMethodPointcut- 参数:
pattern- theStringpattern to matchpatternIndex- index of pattern (starting from 0)- 返回:
trueif there is a match,falseotherwise
-
matchesExclusion
- 指定者:
matchesExclusion在类中AbstractRegexpMethodPointcut- 参数:
candidate- theStringpattern to matchpatternIndex- index of pattern (starting from 0)- 返回:
trueif there is a match,falseotherwise
-