Access keys

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 contain
wildcards.


TODO: Add a list of supported wildcards and how they can be used.

Summary

Constructor
Instance methods
Instance methods inherited from BasicClass

Constructor

WildcardMatcher

function WildcardMatcher (
Void)
Constructs a new WildcardMatcher instance.

Instance methods

match

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:

  • The passed-in joinPoint is null, undefined or an
    empty string.
  • The given pattern does not match the given joinPoint.

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 pattern
pattern :
the pattern to match with the joinPoint
Returns:
true if the joinPoint matches the pattern else
false