Package com.sun.msv.verifier.regexp
Class StringCareLevelCalculator
java.lang.Object
com.sun.msv.verifier.regexp.StringCareLevelCalculator
- All Implemented Interfaces:
ExpressionVisitor
calculates how character literals should be treated.
This class is thread-safe: multiple threads can simultaneously
access the same instance. Note that there is no guarantee that the
derived class is thread-safe.
- Author:
- Kohsuke KAWAGUCHI
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final StringCareLevelCalculator
singleton instance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
calc
(Expression exp) onAttribute
(AttributeExp exp) onElement
(ElementExp exp) onOneOrMore
(OneOrMoreExp exp) onRef
(ReferenceExp exp) onSequence
(SequenceExp exp)
-
Field Details
-
theInstance
singleton instance.
-
-
Constructor Details
-
StringCareLevelCalculator
protected StringCareLevelCalculator()
-
-
Method Details
-
onAttribute
- Specified by:
onAttribute
in interfaceExpressionVisitor
-
onElement
- Specified by:
onElement
in interfaceExpressionVisitor
-
onMixed
- Specified by:
onMixed
in interfaceExpressionVisitor
-
onList
- Specified by:
onList
in interfaceExpressionVisitor
-
onAnyString
- Specified by:
onAnyString
in interfaceExpressionVisitor
-
onData
- Specified by:
onData
in interfaceExpressionVisitor
-
onValue
- Specified by:
onValue
in interfaceExpressionVisitor
-
onChoice
- Specified by:
onChoice
in interfaceExpressionVisitor
-
onOneOrMore
- Specified by:
onOneOrMore
in interfaceExpressionVisitor
-
onRef
- Specified by:
onRef
in interfaceExpressionVisitor
-
onOther
- Specified by:
onOther
in interfaceExpressionVisitor
-
onEpsilon
- Specified by:
onEpsilon
in interfaceExpressionVisitor
-
onNullSet
- Specified by:
onNullSet
in interfaceExpressionVisitor
-
onSequence
- Specified by:
onSequence
in interfaceExpressionVisitor
-
onConcur
- Specified by:
onConcur
in interfaceExpressionVisitor
-
onInterleave
- Specified by:
onInterleave
in interfaceExpressionVisitor
-
calc
-