public class JdkRegexpMethodPointcut extends AbstractRegexpMethodPointcut
java.util.regex
package.
Supports the following JavaBean properties:
Note: the regular expressions must be a match. For example,
.*get.*
will match com.mycom.Foo.getBar().
get.*
will not.
TRUE
Constructor and Description |
---|
JdkRegexpMethodPointcut() |
Modifier and Type | Method and Description |
---|---|
protected void |
initExcludedPatternRepresentation(String[] excludedPatterns)
Initialize exclusion
Patterns from the supplied String[] . |
protected void |
initPatternRepresentation(String[] patterns)
Initialize
Patterns from the supplied String[] . |
protected boolean |
matches(String pattern,
int patternIndex)
|
protected boolean |
matchesExclusion(String candidate,
int patternIndex)
|
equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString
getClassFilter, getMethodMatcher, setClassFilter
isRuntime, matches
protected void initPatternRepresentation(String[] patterns) throws PatternSyntaxException
Patterns
from the supplied String[]
.initPatternRepresentation
in class AbstractRegexpMethodPointcut
patterns
- the patterns to initializePatternSyntaxException
protected void initExcludedPatternRepresentation(String[] excludedPatterns) throws PatternSyntaxException
Patterns
from the supplied String[]
.initExcludedPatternRepresentation
in class AbstractRegexpMethodPointcut
excludedPatterns
- the patterns to initializePatternSyntaxException
protected boolean matches(String pattern, int patternIndex)
matches
in class AbstractRegexpMethodPointcut
pattern
- the String
pattern to matchpatternIndex
- index of pattern (starting from 0)true
if there is a match, false
otherwiseprotected boolean matchesExclusion(String candidate, int patternIndex)
matchesExclusion
in class AbstractRegexpMethodPointcut
candidate
- the String
pattern to matchpatternIndex
- index of pattern (starting from 0)true
if there is a match, false
otherwise