Package com.sun.tools.rngom.binary
Class BinaryPattern
- java.lang.Object
-
- com.sun.tools.rngom.binary.Pattern
-
- com.sun.tools.rngom.binary.BinaryPattern
-
- All Implemented Interfaces:
ParsedPattern
- Direct Known Subclasses:
AfterPattern,ChoicePattern,GroupPattern,InterleavePattern
public abstract class BinaryPattern extends Pattern
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillChildren(Collection col)Adds all the children of this pattern to the given collection.Pattern[]getChildren()Same asfillChildren(Collection)but returns an array.PatterngetOperand1()PatterngetOperand2()-
Methods inherited from class com.sun.tools.rngom.binary.Pattern
accept, apply, isNullable
-
-
-
-
Method Detail
-
getOperand1
public final Pattern getOperand1()
-
getOperand2
public final Pattern getOperand2()
-
fillChildren
public final void fillChildren(Collection col)
Adds all the children of this pattern to the given collection.For example, if this pattern is (A|B|C), it adds A, B, and C to the collection, even though internally it's represented as (A|(B|C)).
-
getChildren
public final Pattern[] getChildren()
Same asfillChildren(Collection)but returns an array.
-
-