- java.lang.Object
-
- com.sun.tools.rngom.binary.Pattern
-
- All Implemented Interfaces:
ParsedPattern
- Direct Known Subclasses:
AttributePattern
,BinaryPattern
,DataPattern
,ElementPattern
,EmptyPattern
,ErrorPattern
,ListPattern
,NotAllowedPattern
,OneOrMorePattern
,RefPattern
,TextPattern
,ValuePattern
public abstract class Pattern extends Object implements ParsedPattern
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(PatternVisitor visitor)
abstract Object
apply(PatternFunction f)
boolean
isNullable()
Returns true if the pattern is nullable.
-
-
-
Method Detail
-
isNullable
public final boolean isNullable()
Returns true if the pattern is nullable.A pattern is nullable when it can match the empty sequence.
-
accept
public abstract void accept(PatternVisitor visitor)
-
apply
public abstract Object apply(PatternFunction f)
-
-