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(java.lang.String[] excludedPatterns)
Initialize exclusion
Patterns from the supplied String[] . |
protected void |
initPatternRepresentation(java.lang.String[] patterns)
Initialize
Patterns from the supplied String[] . |
protected boolean |
matches(java.lang.String pattern,
int patternIndex)
Returns
true if the Pattern at index patternIndex
matches the supplied candidate String . |
protected boolean |
matchesExclusion(java.lang.String candidate,
int patternIndex)
Returns
true if the exclusion Pattern at index patternIndex
matches the supplied candidate String . |
equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString
getClassFilter, getMethodMatcher, setClassFilter
isRuntime, matches
protected void initPatternRepresentation(java.lang.String[] patterns) throws java.util.regex.PatternSyntaxException
Patterns
from the supplied String[]
.initPatternRepresentation
in class AbstractRegexpMethodPointcut
patterns
- the patterns to initializejava.util.regex.PatternSyntaxException
protected void initExcludedPatternRepresentation(java.lang.String[] excludedPatterns) throws java.util.regex.PatternSyntaxException
Patterns
from the supplied String[]
.initExcludedPatternRepresentation
in class AbstractRegexpMethodPointcut
excludedPatterns
- the patterns to initializejava.util.regex.PatternSyntaxException
protected boolean matches(java.lang.String pattern, int patternIndex)
true
if the Pattern
at index patternIndex
matches the supplied candidate String
.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(java.lang.String candidate, int patternIndex)
true
if the exclusion Pattern
at index patternIndex
matches the supplied candidate String
.matchesExclusion
in class AbstractRegexpMethodPointcut
candidate
- the String
pattern to matchpatternIndex
- index of pattern (starting from 0)true
if there is a match, false
otherwise