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, toStringgetClassFilter, getMethodMatcher, setClassFilterisRuntime, matchesprotected void initPatternRepresentation(java.lang.String[] patterns)
throws java.util.regex.PatternSyntaxException
Patterns from the supplied String[].initPatternRepresentation in class AbstractRegexpMethodPointcutpatterns - the patterns to initializejava.util.regex.PatternSyntaxExceptionprotected void initExcludedPatternRepresentation(java.lang.String[] excludedPatterns)
throws java.util.regex.PatternSyntaxException
Patterns from the supplied String[].initExcludedPatternRepresentation in class AbstractRegexpMethodPointcutexcludedPatterns - the patterns to initializejava.util.regex.PatternSyntaxExceptionprotected boolean matches(java.lang.String pattern,
int patternIndex)
true if the Pattern at index patternIndex
matches the supplied candidate String.matches in class AbstractRegexpMethodPointcutpattern - 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 AbstractRegexpMethodPointcutcandidate - the String pattern to matchpatternIndex - index of pattern (starting from 0)true if there is a match, false otherwise