|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.AbstractRegexpMethodPointcut
org.springframework.aop.support.JdkRegexpMethodPointcut
public class JdkRegexpMethodPointcut
Regular expression pointcut based on the 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.
| Field Summary | |
|---|---|
private java.util.regex.Pattern[] |
compiledExclusionPatterns
Compiled form of the exclusion patterns. |
private java.util.regex.Pattern[] |
compiledPatterns
Compiled form of the patterns. |
| Fields inherited from interface org.springframework.aop.Pointcut |
|---|
TRUE |
| Fields inherited from interface org.springframework.aop.MethodMatcher |
|---|
TRUE |
| Constructor Summary | |
|---|---|
JdkRegexpMethodPointcut()
|
|
| Method Summary | |
|---|---|
private java.util.regex.Pattern[] |
compilePatterns(java.lang.String[] source)
Compiles the supplied String[] into an array of
Pattern objects and returns that array. |
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. |
| Methods inherited from class org.springframework.aop.support.AbstractRegexpMethodPointcut |
|---|
equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString |
| Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut |
|---|
getClassFilter, getMethodMatcher, setClassFilter |
| Methods inherited from class org.springframework.aop.support.StaticMethodMatcher |
|---|
isRuntime, matches |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.regex.Pattern[] compiledPatterns
private java.util.regex.Pattern[] compiledExclusionPatterns
| Constructor Detail |
|---|
public JdkRegexpMethodPointcut()
| Method Detail |
|---|
protected void initPatternRepresentation(java.lang.String[] patterns)
throws java.util.regex.PatternSyntaxException
Patterns from the supplied String[].
initPatternRepresentation in class AbstractRegexpMethodPointcutpatterns - the patterns to initialize
java.util.regex.PatternSyntaxException
protected void initExcludedPatternRepresentation(java.lang.String[] excludedPatterns)
throws java.util.regex.PatternSyntaxException
Patterns from the supplied String[].
initExcludedPatternRepresentation in class AbstractRegexpMethodPointcutexcludedPatterns - the patterns to initialize
java.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 AbstractRegexpMethodPointcutpattern - String pattern to matchpatternIndex - index of pattern from 0
true if there is a match, else false.
protected 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 - String pattern to match.patternIndex - index of pattern starting from 0.
true if there is a match, else false.
private java.util.regex.Pattern[] compilePatterns(java.lang.String[] source)
throws java.util.regex.PatternSyntaxException
String[] into an array of
Pattern objects and returns that array.
java.util.regex.PatternSyntaxException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||