com.sun.msv.grammar.util
public class RefExpRemover extends ExpressionCloner
Constructor Summary | |
---|---|
RefExpRemover(ExpressionPool pool, boolean _recursive) |
Method Summary | |
---|---|
Expression | onAttribute(AttributeExp exp) |
Expression | onElement(ElementExp exp) |
Expression | onOther(OtherExp exp) |
Expression | onRef(ReferenceExp exp) |
Parameters: _recursive
If true, this object behaves destructively. It recursively
visits all the reachable expressions and removes ReferenceExps.
In this process, this object changes the content model of
ElementExps.
If false, this object doesn't visit the content models of child
elements, therefore, it behaves non-destructively. Nothing in the
original expression will be touched.