WildcardMatcher
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Implements: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.aop.matcher.WildcardMatcher |
| File last modified: | Sunday, 11 September 2005, 18:48:48 |
WildcardMatcher matches a join point with a pattern that may containwildcards.
TODO: Add a list of supported wildcards and how they can be used.
Summary
Constructor
Constructor
WildcardMatcher
function WildcardMatcher (
Void)
Constructs a new
WildcardMatcher instance.Instance methods
match
function match (
joinPoint:String,
pattern:String) : Boolean
Checks if the passed
given
joinPoint represented by a string matches thegiven
pattern.Supported wildcards are '*' and '..'.
false will be returned if:
- The passed-in
joinPointisnull,undefinedor an
empty string. - The given
patterndoes not match the givenjoinPoint.
A pattern of value null, undefined or empty string
matches every join point.
Parameters:
joinPoint:
the string representation of the join point to match with the
given
given
patternpattern :
the pattern to match with the
joinPointReturns:
true if the joinPoint matches the pattern elsefalseSpecified by: