com.sun.msv.grammar.util
Class ExpressionPrinter
- ExpressionVisitor
public class ExpressionPrinter
creates a string representation of the expression.
useful for debug and dump.
CONTENTMODEL
public static final int CONTENTMODEL
in this mode, element declaration is
one of the terminal symbol of stringnization.
Suitable to dump the content model of element declarations.
FRAGMENT
public static final int FRAGMENT
in this mode, reference to other expression is
one of the terminal symbol of stringnization.
Suitable to dump the entire grammar
printContentModel
public static String printContentModel(Expression exp)
printFragment
public static String printFragment(Expression exp)
printRefContainer
public String printRefContainer(ReferenceContainer cont)
dumps all the contents of ReferenceContainer.
this method is a useful piece to dump the entire grammar.
printSmallest
public static String printSmallest(Expression exp)