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, wait
Methods inherited from interface com.sun.msv.grammar.ExpressionVisitorExpression
onAttribute, onElement, onOther, onRef
-
Field Details
-
pool
-
-
Constructor Details
-
ExpressionCloner
-
-
Method Details
-
onChoice
- Specified by:
onChoice
in interfaceExpressionVisitorExpression
-
onOneOrMore
- Specified by:
onOneOrMore
in interfaceExpressionVisitorExpression
-
onMixed
- Specified by:
onMixed
in interfaceExpressionVisitorExpression
-
onList
- Specified by:
onList
in interfaceExpressionVisitorExpression
-
onSequence
- Specified by:
onSequence
in interfaceExpressionVisitorExpression
-
onConcur
- Specified by:
onConcur
in interfaceExpressionVisitorExpression
-
onInterleave
- Specified by:
onInterleave
in interfaceExpressionVisitorExpression
-
onEpsilon
- Specified by:
onEpsilon
in interfaceExpressionVisitorExpression
-
onNullSet
- Specified by:
onNullSet
in interfaceExpressionVisitorExpression
-
onAnyString
- Specified by:
onAnyString
in interfaceExpressionVisitorExpression
-
onData
- Specified by:
onData
in interfaceExpressionVisitorExpression
-
onValue
- Specified by:
onValue
in interfaceExpressionVisitorExpression
-