Package com.sun.msv.verifier.regexp
Class AttributePicker
java.lang.Object
com.sun.msv.verifier.regexp.AttributePicker
- All Implemented Interfaces:
ExpressionVisitorExpression
removes all unnecessary expressions and
creates an expression that consists of required attributes and choices only.
For example,
will be converted to
because no attribute is required. But
will remain the same because one or the other is required.
this method also removes SequenceExp.
will be converted to
This function object is used only for error recovery.
Resulting expressions always consist only of s and s.
- Author:
- Kohsuke KAWAGUCHI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononAttribute(AttributeExp exp) onElement(ElementExp exp) onOneOrMore(OneOrMoreExp exp) onRef(ReferenceExp exp) onSequence(SequenceExp exp)
-
Constructor Details
-
AttributePicker
-
-
Method Details
-
onElement
- Specified by:
onElementin interfaceExpressionVisitorExpression
-
onMixed
- Specified by:
onMixedin interfaceExpressionVisitorExpression
-
onAnyString
- Specified by:
onAnyStringin interfaceExpressionVisitorExpression
-
onEpsilon
- Specified by:
onEpsilonin interfaceExpressionVisitorExpression
-
onNullSet
- Specified by:
onNullSetin interfaceExpressionVisitorExpression
-
onRef
- Specified by:
onRefin interfaceExpressionVisitorExpression
-
onOther
- Specified by:
onOtherin interfaceExpressionVisitorExpression
-
onData
- Specified by:
onDatain interfaceExpressionVisitorExpression
-
onValue
- Specified by:
onValuein interfaceExpressionVisitorExpression
-
onList
- Specified by:
onListin interfaceExpressionVisitorExpression
-
onAttribute
- Specified by:
onAttributein interfaceExpressionVisitorExpression
-
onOneOrMore
- Specified by:
onOneOrMorein interfaceExpressionVisitorExpression
-
onSequence
- Specified by:
onSequencein interfaceExpressionVisitorExpression
-
onInterleave
- Specified by:
onInterleavein interfaceExpressionVisitorExpression
-
onConcur
- Specified by:
onConcurin interfaceExpressionVisitorExpression
-
onChoice
- Specified by:
onChoicein interfaceExpressionVisitorExpression
-