com.sun.msv.grammar.util
Class RefExpRemover

java.lang.Object
  |
  +--com.sun.msv.grammar.ExpressionCloner
        |
        +--com.sun.msv.grammar.util.RefExpRemover
All Implemented Interfaces:
ExpressionVisitorExpression

public class RefExpRemover
extends ExpressionCloner

removes all ReferenceExp from AGM. when named expression is nullSet, it cannot be used. by replacing ReferenceExp by its definition, those unavailable expressions will be properly removed from AGM.

Author:
Kohsuke KAWAGUCHI

Constructor Summary
RefExpRemover(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, onEpsilon, onInterleave, onKey, onList, onMixed, onNullSet, onOneOrMore, onSequence, onTypedString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefExpRemover

public RefExpRemover(ExpressionPool pool)
Method Detail

onElement

public Expression onElement(ElementExp exp)

onAttribute

public Expression onAttribute(AttributeExp exp)

onRef

public Expression onRef(ReferenceExp exp)

onOther

public Expression onOther(OtherExp exp)