com.sun.msv.verifier.regexp

Class AttributePruner

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

Constructor Summary

AttributePruner(ExpressionPool pool)

Method Summary

Expression
onAttribute(AttributeExp exp)
Expression
onElement(ElementExp exp)
Expression
onOther(OtherExp exp)
Expression
onRef(ReferenceExp exp)
Expression
prune(Expression exp)

Methods inherited from class com.sun.msv.grammar.ExpressionCloner

onAnyString, onChoice, onConcur, onData, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onSequence, onValue

Constructor Details

AttributePruner

public AttributePruner(ExpressionPool pool)

Method Details

onAttribute

public Expression onAttribute(AttributeExp exp)
Specified by:
onAttribute in interface ExpressionVisitorExpression

onElement

public Expression onElement(ElementExp exp)
Specified by:
onElement in interface ExpressionVisitorExpression

onOther

public Expression onOther(OtherExp exp)
Specified by:
onOther in interface ExpressionVisitorExpression

onRef

public Expression onRef(ReferenceExp exp)
Specified by:
onRef in interface ExpressionVisitorExpression

prune

public final Expression prune(Expression exp)