com.sun.msv.verifier.regexp

Class AttributeRemover

Implemented Interfaces:
ExpressionVisitorExpression

public class AttributeRemover
extends ExpressionCloner

Creates an expression whose AttributeExp is completely replaced by epsilon. This step is used to erase all unconsumed AttributeExp from the expression. This class is used for error recovery. Usually, unconsumed attributes indicates a violation of the validity.
Author:
Kohsuke KAWAGUCHI

Constructor Summary

AttributeRemover(ExpressionPool pool)

Method Summary

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

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

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

Constructor Details

AttributeRemover

public AttributeRemover(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