class RELAXNGWriter.SmartPatternWriter extends PatternWriter
context, writer
Constructor and Description |
---|
SmartPatternWriter(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
onAttribute(AttributeExp exp) |
void |
onElement(ElementExp exp) |
void |
onOther(OtherExp exp) |
void |
onRef(ReferenceExp exp) |
Expression |
simplify(Expression exp)
remove unnecessary ReferenceExp from content model.
|
protected void |
writeElement(ElementExp exp) |
isPredefinedType, onAnyString, onChoice, onConcur, onData, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onOptional, onSequence, onValue, onZeroOrMore, param, serializeDataType, serializeEnumeration, serializeListType, serializeUnionType, visitBinExp, visitUnary
SmartPatternWriter(Context context)
public void onOther(OtherExp exp)
onOther
in interface ExpressionVisitorVoid
onOther
in class PatternWriter
public void onRef(ReferenceExp exp)
onRef
in interface ExpressionVisitorVoid
onRef
in class PatternWriter
public void onElement(ElementExp exp)
onElement
in interface ExpressionVisitorVoid
onElement
in class PatternWriter
public void onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitorVoid
onAttribute
in class PatternWriter
protected void writeElement(ElementExp exp)
public Expression simplify(Expression exp)