Package com.sun.msv.verifier.regexp
Class ResidualCalculator
java.lang.Object
com.sun.msv.verifier.regexp.ResidualCalculator
- All Implemented Interfaces:
ExpressionVisitorExpression
computes regular expression derivative.
this class receives a regexp and computes the right language after eating
given token.
- Author:
- Kohsuke KAWAGUCHI
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Expression
calcResidual
(Expression exp, Token token) compute the residualonAttribute
(AttributeExp exp) onElement
(ElementExp exp) onOneOrMore
(OneOrMoreExp exp) onRef
(ReferenceExp exp) onSequence
(SequenceExp exp)
-
Field Details
-
token
-
pool
-
-
Constructor Details
-
ResidualCalculator
-
-
Method Details
-
calcResidual
compute the residual -
onAttribute
- Specified by:
onAttribute
in interfaceExpressionVisitorExpression
-
onChoice
- Specified by:
onChoice
in interfaceExpressionVisitorExpression
-
onElement
- Specified by:
onElement
in interfaceExpressionVisitorExpression
-
onOneOrMore
- Specified by:
onOneOrMore
in interfaceExpressionVisitorExpression
-
onMixed
- Specified by:
onMixed
in interfaceExpressionVisitorExpression
-
onEpsilon
- Specified by:
onEpsilon
in interfaceExpressionVisitorExpression
-
onNullSet
- Specified by:
onNullSet
in interfaceExpressionVisitorExpression
-
onAnyString
- Specified by:
onAnyString
in interfaceExpressionVisitorExpression
-
onRef
- Specified by:
onRef
in interfaceExpressionVisitorExpression
-
onOther
- Specified by:
onOther
in interfaceExpressionVisitorExpression
-
onSequence
- Specified by:
onSequence
in interfaceExpressionVisitorExpression
-
onData
- Specified by:
onData
in interfaceExpressionVisitorExpression
-
onValue
- Specified by:
onValue
in interfaceExpressionVisitorExpression
-
onList
- Specified by:
onList
in interfaceExpressionVisitorExpression
-
onConcur
- Specified by:
onConcur
in interfaceExpressionVisitorExpression
-
onInterleave
- Specified by:
onInterleave
in interfaceExpressionVisitorExpression
-