frysk.expr
Class FQIdentPatternGlob

java.lang.Object
  extended by frysk.expr.FQIdentPatternGlob
All Implemented Interfaces:
FQIdentPattern

 class FQIdentPatternGlob
extends Object
implements FQIdentPattern

Pattern for part of FQ identifier specified by a glob.


Field Summary
private  String glob
           
private  Pattern pattern
           
 
Fields inherited from interface frysk.expr.FQIdentPattern
CARD_ALL, CARD_MANY, CARD_NONE, CARD_ONE
 
Constructor Summary
FQIdentPatternGlob(String glob)
           
 
Method Summary
 int cardinality()
          Cardinality of this pattern.
 boolean matches(String symbolName)
          Whether given string matches this pattern.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pattern

private final Pattern pattern

glob

private final String glob
Constructor Detail

FQIdentPatternGlob

public FQIdentPatternGlob(String glob)
Method Detail

cardinality

public int cardinality()
Description copied from interface: FQIdentPattern
Cardinality of this pattern. See various CARD_ constants for possible values.

Specified by:
cardinality in interface FQIdentPattern

matches

public boolean matches(String symbolName)
Description copied from interface: FQIdentPattern
Whether given string matches this pattern. STR can be a symbol name, soname, etc.

Specified by:
matches in interface FQIdentPattern

toString

public String toString()
Overrides:
toString in class Object