Package com.sun.msv.grammar
Class ExpressionCloner
java.lang.Object
com.sun.msv.grammar.ExpressionCloner
- All Implemented Interfaces:
ExpressionVisitorExpression
- Direct Known Subclasses:
AttributePruner,AttributeRemover,IslandSchemaImpl.Binder,RefExpRemover
clones an expression.
By visiting an expression, returns a cloned expression.
This class is useless by itself since expressions are shared and unified. It should be used as a base class for various AGM-related tasks to modify AGM.
Note that this class doesn't provide default implementations for onAttribute, onElement, and onRef methods. Typically, the derived class needs to do something to prevent infinite recursion.
- Author:
- Kohsuke KAWAGUCHI
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.msv.grammar.ExpressionVisitorExpression
onAttribute, onElement, onOther, onRef
-
Field Details
-
pool
-
-
Constructor Details
-
ExpressionCloner
-
-
Method Details
-
onChoice
- Specified by:
onChoicein interfaceExpressionVisitorExpression
-
onOneOrMore
- Specified by:
onOneOrMorein interfaceExpressionVisitorExpression
-
onMixed
- Specified by:
onMixedin interfaceExpressionVisitorExpression
-
onList
- Specified by:
onListin interfaceExpressionVisitorExpression
-
onSequence
- Specified by:
onSequencein interfaceExpressionVisitorExpression
-
onConcur
- Specified by:
onConcurin interfaceExpressionVisitorExpression
-
onInterleave
- Specified by:
onInterleavein interfaceExpressionVisitorExpression
-
onEpsilon
- Specified by:
onEpsilonin interfaceExpressionVisitorExpression
-
onNullSet
- Specified by:
onNullSetin interfaceExpressionVisitorExpression
-
onAnyString
- Specified by:
onAnyStringin interfaceExpressionVisitorExpression
-
onData
- Specified by:
onDatain interfaceExpressionVisitorExpression
-
onValue
- Specified by:
onValuein interfaceExpressionVisitorExpression
-