com.sun.msv.verifier.regexp
Class AttributePruner
java.lang.Object
com.sun.msv.grammar.ExpressionCloner
com.sun.msv.verifier.regexp.AttributePruner
- All Implemented Interfaces:
- ExpressionVisitorExpression
public class AttributePruner
- extends ExpressionCloner
Creates an expression whose AttributeExp is completely replaced by nullSet.
This step is used to remove all unconsumed AttributeExp from the expression.
- Author:
- Kohsuke KAWAGUCHI
Methods inherited from class com.sun.msv.grammar.ExpressionCloner |
onAnyString, onChoice, onConcur, onData, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onSequence, onValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributePruner
public AttributePruner(ExpressionPool pool)
onAttribute
public Expression onAttribute(AttributeExp exp)
onRef
public Expression onRef(ReferenceExp exp)
onOther
public Expression onOther(OtherExp exp)
onElement
public Expression onElement(ElementExp exp)
prune
public final Expression prune(Expression exp)
MSV