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
-
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:
onElement
in interfaceExpressionVisitorExpression
-
onMixed
- Specified by:
onMixed
in interfaceExpressionVisitorExpression
-
onAnyString
- Specified by:
onAnyString
in interfaceExpressionVisitorExpression
-
onEpsilon
- Specified by:
onEpsilon
in interfaceExpressionVisitorExpression
-
onNullSet
- Specified by:
onNullSet
in interfaceExpressionVisitorExpression
-
onRef
- Specified by:
onRef
in interfaceExpressionVisitorExpression
-
onOther
- Specified by:
onOther
in interfaceExpressionVisitorExpression
-
onData
- Specified by:
onData
in interfaceExpressionVisitorExpression
-
onValue
- Specified by:
onValue
in interfaceExpressionVisitorExpression
-
onList
- Specified by:
onList
in interfaceExpressionVisitorExpression
-
onAttribute
- Specified by:
onAttribute
in interfaceExpressionVisitorExpression
-
onOneOrMore
- Specified by:
onOneOrMore
in interfaceExpressionVisitorExpression
-
onSequence
- Specified by:
onSequence
in interfaceExpressionVisitorExpression
-
onInterleave
- Specified by:
onInterleave
in interfaceExpressionVisitorExpression
-
onConcur
- Specified by:
onConcur
in interfaceExpressionVisitorExpression
-
onChoice
- Specified by:
onChoice
in interfaceExpressionVisitorExpression
-