Package com.sun.msv.verifier.regexp
Class StringCareLevelCalculator
- java.lang.Object
-
- com.sun.msv.verifier.regexp.StringCareLevelCalculator
-
- All Implemented Interfaces:
ExpressionVisitor
public class StringCareLevelCalculator extends Object implements 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
Fields Modifier and Type Field Description protected static StringCareLevelCalculatortheInstancesingleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringCareLevelCalculator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intcalc(Expression exp)ObjectonAnyString()ObjectonAttribute(AttributeExp exp)ObjectonChoice(ChoiceExp exp)ObjectonConcur(ConcurExp exp)ObjectonData(DataExp exp)ObjectonElement(ElementExp exp)ObjectonEpsilon()ObjectonInterleave(InterleaveExp p)ObjectonList(ListExp exp)ObjectonMixed(MixedExp exp)ObjectonNullSet()ObjectonOneOrMore(OneOrMoreExp exp)ObjectonOther(OtherExp exp)ObjectonRef(ReferenceExp exp)ObjectonSequence(SequenceExp exp)ObjectonValue(ValueExp exp)
-
-
-
Field Detail
-
theInstance
protected static final StringCareLevelCalculator theInstance
singleton instance.
-
-
Method Detail
-
onAttribute
public Object onAttribute(AttributeExp exp)
- Specified by:
onAttributein interfaceExpressionVisitor
-
onElement
public Object onElement(ElementExp exp)
- Specified by:
onElementin interfaceExpressionVisitor
-
onMixed
public Object onMixed(MixedExp exp)
- Specified by:
onMixedin interfaceExpressionVisitor
-
onList
public Object onList(ListExp exp)
- Specified by:
onListin interfaceExpressionVisitor
-
onAnyString
public Object onAnyString()
- Specified by:
onAnyStringin interfaceExpressionVisitor
-
onData
public Object onData(DataExp exp)
- Specified by:
onDatain interfaceExpressionVisitor
-
onValue
public Object onValue(ValueExp exp)
- Specified by:
onValuein interfaceExpressionVisitor
-
onChoice
public Object onChoice(ChoiceExp exp)
- Specified by:
onChoicein interfaceExpressionVisitor
-
onOneOrMore
public Object onOneOrMore(OneOrMoreExp exp)
- Specified by:
onOneOrMorein interfaceExpressionVisitor
-
onRef
public Object onRef(ReferenceExp exp)
- Specified by:
onRefin interfaceExpressionVisitor
-
onOther
public Object onOther(OtherExp exp)
- Specified by:
onOtherin interfaceExpressionVisitor
-
onEpsilon
public Object onEpsilon()
- Specified by:
onEpsilonin interfaceExpressionVisitor
-
onNullSet
public Object onNullSet()
- Specified by:
onNullSetin interfaceExpressionVisitor
-
onSequence
public Object onSequence(SequenceExp exp)
- Specified by:
onSequencein interfaceExpressionVisitor
-
onConcur
public Object onConcur(ConcurExp exp)
- Specified by:
onConcurin interfaceExpressionVisitor
-
onInterleave
public Object onInterleave(InterleaveExp p)
- Specified by:
onInterleavein interfaceExpressionVisitor
-
calc
public static int calc(Expression exp)
-
-