|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.grammar.util.ExpressionPrinter
public class ExpressionPrinter
creates a string representation of the expression. useful for debug and dump.
Field Summary | |
---|---|
static int |
CONTENTMODEL
in this mode, element declaration is one of the terminal symbol of stringnization. |
static ExpressionPrinter |
contentModelInstance
|
static int |
FRAGMENT
in this mode, reference to other expression is one of the terminal symbol of stringnization. |
static ExpressionPrinter |
fragmentInstance
|
static ExpressionPrinter |
smallestInstance
|
Method Summary | |
---|---|
Object |
onAnyString()
|
Object |
onAttribute(AttributeExp exp)
|
Object |
onChoice(ChoiceExp exp)
|
Object |
onConcur(ConcurExp exp)
|
Object |
onData(DataExp exp)
|
Object |
onElement(ElementExp exp)
|
Object |
onEpsilon()
|
Object |
onInterleave(InterleaveExp exp)
|
Object |
onList(ListExp exp)
|
Object |
onMixed(MixedExp exp)
|
Object |
onNullSet()
|
Object |
onOneOrMore(OneOrMoreExp exp)
|
Object |
onOther(OtherExp exp)
|
Object |
onRef(ReferenceExp exp)
|
Object |
onSequence(SequenceExp exp)
|
Object |
onValue(ValueExp exp)
|
static String |
printContentModel(Expression exp)
|
static String |
printFragment(Expression exp)
|
String |
printRefContainer(ReferenceContainer cont)
dumps all the contents of ReferenceContainer. |
static String |
printSmallest(Expression exp)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FRAGMENT
public static final int CONTENTMODEL
public static ExpressionPrinter fragmentInstance
public static ExpressionPrinter contentModelInstance
public static ExpressionPrinter smallestInstance
Method Detail |
---|
public static String printFragment(Expression exp)
public static String printContentModel(Expression exp)
public static String printSmallest(Expression exp)
public String printRefContainer(ReferenceContainer cont)
public Object onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitor
public Object onChoice(ChoiceExp exp)
onChoice
in interface ExpressionVisitor
public Object onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitor
public Object onInterleave(InterleaveExp exp)
onInterleave
in interface ExpressionVisitor
public Object onElement(ElementExp exp)
onElement
in interface ExpressionVisitor
public Object onOneOrMore(OneOrMoreExp exp)
onOneOrMore
in interface ExpressionVisitor
public Object onMixed(MixedExp exp)
onMixed
in interface ExpressionVisitor
public Object onList(ListExp exp)
onList
in interface ExpressionVisitor
public Object onEpsilon()
onEpsilon
in interface ExpressionVisitor
public Object onNullSet()
onNullSet
in interface ExpressionVisitor
public Object onAnyString()
onAnyString
in interface ExpressionVisitor
public Object onSequence(SequenceExp exp)
onSequence
in interface ExpressionVisitor
public Object onData(DataExp exp)
onData
in interface ExpressionVisitor
public Object onValue(ValueExp exp)
onValue
in interface ExpressionVisitor
public Object onOther(OtherExp exp)
onOther
in interface ExpressionVisitor
public Object onRef(ReferenceExp exp)
onRef
in interface ExpressionVisitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |