com.sun.msv.grammar

Interface ExpressionVisitor

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
ObjectonAnyString()
ObjectonAttribute(AttributeExp exp)
ObjectonChoice(ChoiceExp exp)
ObjectonConcur(ConcurExp p)
ObjectonData(DataExp exp)
ObjectonElement(ElementExp exp)
ObjectonEpsilon()
ObjectonInterleave(InterleaveExp p)
ObjectonList(ListExp exp)
ObjectonMixed(MixedExp exp)
ObjectonNullSet()
ObjectonOneOrMore(OneOrMoreExp exp)
ObjectonOther(OtherExp exp)
ObjectonRef(ReferenceExp exp)
ObjectonSequence(SequenceExp exp)
ObjectonValue(ValueExp exp)

Method Detail

onAnyString

public Object onAnyString()

onAttribute

public Object onAttribute(AttributeExp exp)

onChoice

public Object onChoice(ChoiceExp exp)

onConcur

public Object onConcur(ConcurExp p)

onData

public Object onData(DataExp exp)

onElement

public Object onElement(ElementExp exp)

onEpsilon

public Object onEpsilon()

onInterleave

public Object onInterleave(InterleaveExp p)

onList

public Object onList(ListExp exp)

onMixed

public Object onMixed(MixedExp exp)

onNullSet

public Object onNullSet()

onOneOrMore

public Object onOneOrMore(OneOrMoreExp exp)

onOther

public Object onOther(OtherExp exp)

onRef

public Object onRef(ReferenceExp exp)

onSequence

public Object onSequence(SequenceExp exp)

onValue

public Object onValue(ValueExp exp)