com.sun.msv.grammar
Interface ExpressionVisitor

All Known Subinterfaces:
RELAXExpressionVisitor
All Known Implementing Classes:
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.

Author:
Kohsuke KAWAGUCHI

Method Summary
 Object onAnyString()
           
 Object onAttribute(AttributeExp exp)
           
 Object onChoice(ChoiceExp exp)
           
 Object onConcur(ConcurExp p)
           
 Object onData(DataExp exp)
           
 Object onElement(ElementExp exp)
           
 Object onEpsilon()
           
 Object onInterleave(InterleaveExp p)
           
 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)
           
 

Method Detail

onAttribute

Object onAttribute(AttributeExp exp)

onChoice

Object onChoice(ChoiceExp exp)

onElement

Object onElement(ElementExp exp)

onOneOrMore

Object onOneOrMore(OneOrMoreExp exp)

onMixed

Object onMixed(MixedExp exp)

onList

Object onList(ListExp exp)

onRef

Object onRef(ReferenceExp exp)

onOther

Object onOther(OtherExp exp)

onEpsilon

Object onEpsilon()

onNullSet

Object onNullSet()

onAnyString

Object onAnyString()

onSequence

Object onSequence(SequenceExp exp)

onData

Object onData(DataExp exp)

onValue

Object onValue(ValueExp exp)

onConcur

Object onConcur(ConcurExp p)

onInterleave

Object onInterleave(InterleaveExp p)