com.sun.msv.verifier.regexp
Class AttributePruner

java.lang.Object
  extended bycom.sun.msv.grammar.ExpressionCloner
      extended bycom.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

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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributePruner

public AttributePruner(ExpressionPool pool)
Method Detail

onAttribute

public Expression onAttribute(AttributeExp exp)

onElement

public Expression onElement(ElementExp exp)

onOther

public Expression onOther(OtherExp exp)

onRef

public Expression onRef(ReferenceExp exp)

prune

public final Expression prune(Expression exp)


Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 28 2005.