com.sun.msv.grammar
Class BinaryExp
- Serializable
public abstract class BinaryExp
Base implementation for those expression which has two child expressions.
equals , getExpandedExp , hashCode , isEpsilonReducible , peelOccurence , visit , visit , visit , visit , visit , visit , visit , visit |
children
public Iterator children()
iterates all child expressions.
Since expressions are binarized, expressions like A|B|C is modeled as
A|(B|C). This is may not be preferable for some applications.
This method returns an iterator that iterates all children
(A,B, and C in this example)
getChildren
public Expression[] getChildren()
returns all child expressions in one array.
This method is similar to the children method but it returns an array
that contains all children instead of an iterator object.