com.sun.msv.grammar
Interface ExpressionVisitor
- RELAXExpressionVisitor
- ElementsOfConcernCollector, ExpressionPrinter, TREXSequencedStringChecker
public interface ExpressionVisitor
Visitor interface for Expression and its derived types.
You may want to use ExpressionVisitorXXXX class if you want to
return boolean, void, or
Expression
.
It is the callee's responsibility to traverse child expression.
Expression and its derived classes do not provide any traversal.
See
ExpressionCloner
for example.
onRef method is called for all subclass of ReferenceExp. So you can safely use this
interface to visit AGMs from RELAX grammar.
onAnyString
public Object onAnyString()
onChoice
public Object onChoice(ChoiceExp exp)
onData
public Object onData(DataExp exp)
onEpsilon
public Object onEpsilon()
onList
public Object onList(ListExp exp)
onMixed
public Object onMixed(MixedExp exp)
onNullSet
public Object onNullSet()
onOther
public Object onOther(OtherExp exp)
onValue
public Object onValue(ValueExp exp)