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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theInstance
protected static final StringCareLevelCalculator theInstance
- singleton instance.
StringCareLevelCalculator
protected StringCareLevelCalculator()
onAttribute
public Object onAttribute(AttributeExp exp)
- Specified by:
onAttribute
in interface ExpressionVisitor
onElement
public Object onElement(ElementExp exp)
- Specified by:
onElement
in interface ExpressionVisitor
onMixed
public Object onMixed(MixedExp exp)
- Specified by:
onMixed
in interface ExpressionVisitor
onList
public Object onList(ListExp exp)
- Specified by:
onList
in interface ExpressionVisitor
onAnyString
public Object onAnyString()
- Specified by:
onAnyString
in interface ExpressionVisitor
onData
public Object onData(DataExp exp)
- Specified by:
onData
in interface ExpressionVisitor
onValue
public Object onValue(ValueExp exp)
- Specified by:
onValue
in interface ExpressionVisitor
onChoice
public Object onChoice(ChoiceExp exp)
- Specified by:
onChoice
in interface ExpressionVisitor
onOneOrMore
public Object onOneOrMore(OneOrMoreExp exp)
- Specified by:
onOneOrMore
in interface ExpressionVisitor
onRef
public Object onRef(ReferenceExp exp)
- Specified by:
onRef
in interface ExpressionVisitor
onOther
public Object onOther(OtherExp exp)
- Specified by:
onOther
in interface ExpressionVisitor
onEpsilon
public Object onEpsilon()
- Specified by:
onEpsilon
in interface ExpressionVisitor
onNullSet
public Object onNullSet()
- Specified by:
onNullSet
in interface ExpressionVisitor
onSequence
public Object onSequence(SequenceExp exp)
- Specified by:
onSequence
in interface ExpressionVisitor
onConcur
public Object onConcur(ConcurExp exp)
- Specified by:
onConcur
in interface ExpressionVisitor
onInterleave
public Object onInterleave(InterleaveExp p)
- Specified by:
onInterleave
in interface ExpressionVisitor
calc
public static int calc(Expression exp)
MSV