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
 java.lang.Object onAnyString()
           
 java.lang.Object onAttribute(AttributeExp exp)
           
 java.lang.Object onChoice(ChoiceExp exp)
           
 java.lang.Object onConcur(ConcurExp p)
           
 java.lang.Object onData(DataExp exp)
           
 java.lang.Object onElement(ElementExp exp)
           
 java.lang.Object onEpsilon()
           
 java.lang.Object onInterleave(InterleaveExp p)
           
 java.lang.Object onList(ListExp exp)
           
 java.lang.Object onMixed(MixedExp exp)
           
 java.lang.Object onNullSet()
           
 java.lang.Object onOneOrMore(OneOrMoreExp exp)
           
 java.lang.Object onOther(OtherExp exp)
           
 java.lang.Object onRef(ReferenceExp exp)
           
 java.lang.Object onSequence(SequenceExp exp)
           
 java.lang.Object onValue(ValueExp exp)
           
 

Method Detail

onAnyString

public java.lang.Object onAnyString()

onAttribute

public java.lang.Object onAttribute(AttributeExp exp)

onChoice

public java.lang.Object onChoice(ChoiceExp exp)

onConcur

public java.lang.Object onConcur(ConcurExp p)

onData

public java.lang.Object onData(DataExp exp)

onElement

public java.lang.Object onElement(ElementExp exp)

onEpsilon

public java.lang.Object onEpsilon()

onInterleave

public java.lang.Object onInterleave(InterleaveExp p)

onList

public java.lang.Object onList(ListExp exp)

onMixed

public java.lang.Object onMixed(MixedExp exp)

onNullSet

public java.lang.Object onNullSet()

onOneOrMore

public java.lang.Object onOneOrMore(OneOrMoreExp exp)

onOther

public java.lang.Object onOther(OtherExp exp)

onRef

public java.lang.Object onRef(ReferenceExp exp)

onSequence

public java.lang.Object onSequence(SequenceExp exp)

onValue

public java.lang.Object onValue(ValueExp exp)


Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.