Package com.sun.msv.grammar
Interface ExpressionVisitor
- All Known Subinterfaces:
RELAXExpressionVisitor
- All Known Implementing Classes:
ElementsOfConcernCollector
,ExpressionPrinter
,StringCareLevelCalculator
,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.
-
Method Summary
Modifier and TypeMethodDescriptiononAttribute
(AttributeExp exp) onElement
(ElementExp exp) onOneOrMore
(OneOrMoreExp exp) onRef
(ReferenceExp exp) onSequence
(SequenceExp exp)