public class NoneTypeRemover extends ExpressionCloner
Modifier and Type | Field and Description |
---|---|
private java.util.Set |
visitedElements
set of visited ElementExps
|
pool
Constructor and Description |
---|
NoneTypeRemover(ExpressionPool pool) |
Modifier and Type | Method and Description |
---|---|
Expression |
onAttribute(AttributeExp exp) |
Expression |
onData(DataExp exp) |
Expression |
onElement(ElementExp exp) |
Expression |
onOther(OtherExp exp) |
Expression |
onRef(ReferenceExp exp) |
onAnyString, onChoice, onConcur, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onSequence, onValue
public NoneTypeRemover(ExpressionPool pool)
public Expression onElement(ElementExp exp)
public Expression onAttribute(AttributeExp exp)
public Expression onData(DataExp exp)
onData
in interface ExpressionVisitorExpression
onData
in class ExpressionCloner
public Expression onRef(ReferenceExp exp)
public Expression onOther(OtherExp exp)