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
FieldsModifier and TypeFieldDescriptionprotected static final StringCareLevelCalculatorsingleton instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalc(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:
onAttributein interfaceExpressionVisitor
-
onElement
- Specified by:
onElementin interfaceExpressionVisitor
-
onMixed
- Specified by:
onMixedin interfaceExpressionVisitor
-
onList
- Specified by:
onListin interfaceExpressionVisitor
-
onAnyString
- Specified by:
onAnyStringin interfaceExpressionVisitor
-
onData
- Specified by:
onDatain interfaceExpressionVisitor
-
onValue
- Specified by:
onValuein interfaceExpressionVisitor
-
onChoice
- Specified by:
onChoicein interfaceExpressionVisitor
-
onOneOrMore
- Specified by:
onOneOrMorein interfaceExpressionVisitor
-
onRef
- Specified by:
onRefin interfaceExpressionVisitor
-
onOther
- Specified by:
onOtherin interfaceExpressionVisitor
-
onEpsilon
- Specified by:
onEpsilonin interfaceExpressionVisitor
-
onNullSet
- Specified by:
onNullSetin interfaceExpressionVisitor
-
onSequence
- Specified by:
onSequencein interfaceExpressionVisitor
-
onConcur
- Specified by:
onConcurin interfaceExpressionVisitor
-
onInterleave
- Specified by:
onInterleavein interfaceExpressionVisitor
-
calc
-