站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

JdkRegexpMethodPointcut (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.aop.support
Class JdkRegexpMethodPointcut

java.lang.Object
  extended by org.springframework.aop.support.StaticMethodMatcher
      extended by org.springframework.aop.support.StaticMethodMatcherPointcut
          extended by org.springframework.aop.support.AbstractRegexpMethodPointcut
              extended by org.springframework.aop.support.JdkRegexpMethodPointcut
All Implemented Interfaces:
Serializable, ClassFilter, MethodMatcher, Pointcut

public class JdkRegexpMethodPointcut
extends AbstractRegexpMethodPointcut

Java 1.4 regular expression pointcut. JavaBean properties are:

Note: the regular expressions must be a match. For example, .*get.* will match com.mycom.Foo.getBar(). get.* will not.

Requires JDK 1.4+, as it builds on the java.util.regex package. As alternative on JDK 1.3 or for Perl5-style regular expression parsing, consider Perl5RegexpMethodPointcut.

Since:
1.1
Author:
Dmitriy Kopylenko
See Also:
Perl5RegexpMethodPointcut, Serialized Form

Field Summary
 
Fields inherited from class org.springframework.aop.support.AbstractRegexpMethodPointcut
logger
 
Fields inherited from interface org.springframework.aop.ClassFilter
TRUE
 
Fields inherited from interface org.springframework.aop.Pointcut
TRUE
 
Fields inherited from interface org.springframework.aop.MethodMatcher
TRUE
 
Constructor Summary
JdkRegexpMethodPointcut()
           
 
Method Summary
protected  void initPatternRepresentation(String[] patterns)
          Initialize Java 1.4 Patterns field from patterns String[].
protected  boolean matches(String pattern, int patternIndex)
          Does the pattern at the given index match this string?
 
Methods inherited from class org.springframework.aop.support.AbstractRegexpMethodPointcut
getClassFilter, getPatterns, matches, matches, setPattern, setPatterns
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut
getMethodMatcher, setClassFilter
 
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkRegexpMethodPointcut

public JdkRegexpMethodPointcut()
Method Detail

initPatternRepresentation

protected void initPatternRepresentation(String[] patterns)
                                  throws PatternSyntaxException
Initialize Java 1.4 Patterns field from patterns String[].

Specified by:
initPatternRepresentation in class AbstractRegexpMethodPointcut
Parameters:
patterns - the patterns to initialize
Throws:
PatternSyntaxException

matches

protected boolean matches(String pattern,
                          int patternIndex)
Description copied from class: AbstractRegexpMethodPointcut
Does the pattern at the given index match this string?

Specified by:
matches in class AbstractRegexpMethodPointcut
Parameters:
pattern - string pattern to match
patternIndex - index of pattern from 0
Returns:
whether there's a match


Copyright (c) 2002-2007 The Spring Framework Project.