类 JdkRegexpMethodPointcut
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.StaticMethodMatcher
infra.aop.support.StaticMethodMatcherPointcut
infra.aop.support.AbstractRegexpMethodPointcut
infra.aop.support.JdkRegexpMethodPointcut
- 所有已实现的接口:
MethodMatcher,Pointcut,infra.core.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
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.MethodMatcher
MethodMatcher.ClassFilterAwareUnionIntroductionAwareMethodMatcher, MethodMatcher.ClassFilterAwareUnionMethodMatcher, MethodMatcher.IntersectionIntroductionAwareMethodMatcher, MethodMatcher.IntersectionMethodMatcher, MethodMatcher.NegateMethodMatcher, MethodMatcher.UnionIntroductionAwareMethodMatcher, MethodMatcher.UnionMethodMatcher从接口继承的嵌套类/接口 infra.aop.Pointcut
Pointcut.GetterPointcut, Pointcut.SetterPointcut -
字段概要
字段修饰符和类型字段说明private Pattern[]Compiled form of the exclusion patterns.private Pattern[]Compiled form of the patterns.从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.MethodMatcher
TRUE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private Pattern[]compilePatterns(String[] source) Compiles the suppliedString[]into an array ofPatternobjects and returns that array.protected voidinitExcludedPatternRepresentation(String[] excludedPatterns) Initialize exclusionPatternsfrom the suppliedString[].protected voidinitPatternRepresentation(String[] patterns) InitializePatternsfrom the suppliedString[].protected booleanprotected booleanmatchesExclusion(String candidate, int patternIndex) 从类继承的方法 infra.aop.support.AbstractRegexpMethodPointcut
equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString从类继承的方法 infra.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter从类继承的方法 infra.aop.support.StaticMethodMatcher
isRuntime, matches从类继承的方法 infra.core.OrderedSupport
getOrder, setOrder
-
字段详细资料
-
compiledPatterns
Compiled form of the patterns. -
compiledExclusionPatterns
Compiled form of the exclusion patterns.
-
-
构造器详细资料
-
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
-
compilePatterns
Compiles the suppliedString[]into an array ofPatternobjects and returns that array.
-