org.as2lib.core.BasicClass +--org.as2lib.aop.matcher.WildcardMatcher
Matcher
WildcardMatcher
matches a join point with a pattern that may contain
wildcards.
TODO: Add a list of supported wildcards and how they can be used.
public function match(joinPoint:String, pattern:String):Boolean
Checks if the passed joinPoint
represented by a string matches the
given pattern
.
Supported wildcards are '*' and '..'.
false
will be returned if:
joinPoint
is null
, undefined
or an
empty string.
pattern
does not match the given joinPoint
.A pattern
of value null
, undefined
or empty string
matches every join point.
joinPoint | the string representation of the join point to match with the
given pattern
|
pattern | the pattern to match with the joinPoint
|
true
if the joinPoint
matches the pattern
else
false