com.sun.msv.verifier.regexp
Class StringCareLevelCalculator
java.lang.Object
|
+--com.sun.msv.verifier.regexp.StringCareLevelCalculator
- All Implemented Interfaces:
- ExpressionVisitorBoolean
- public class StringCareLevelCalculator
- extends Object
- implements ExpressionVisitorBoolean
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
onSequence
public boolean onSequence(SequenceExp exp)
- Specified by:
onSequence
in interface ExpressionVisitorBoolean
onInterleave
public boolean onInterleave(InterleaveExp exp)
- Specified by:
onInterleave
in interface ExpressionVisitorBoolean
onConcur
public boolean onConcur(ConcurExp exp)
- Specified by:
onConcur
in interface ExpressionVisitorBoolean
onChoice
public boolean onChoice(ChoiceExp exp)
- Specified by:
onChoice
in interface ExpressionVisitorBoolean
onAttribute
public boolean onAttribute(AttributeExp exp)
- Specified by:
onAttribute
in interface ExpressionVisitorBoolean
onElement
public boolean onElement(ElementExp exp)
- Specified by:
onElement
in interface ExpressionVisitorBoolean
onOneOrMore
public boolean onOneOrMore(OneOrMoreExp exp)
- Specified by:
onOneOrMore
in interface ExpressionVisitorBoolean
onMixed
public boolean onMixed(MixedExp exp)
- Specified by:
onMixed
in interface ExpressionVisitorBoolean
onList
public boolean onList(ListExp exp)
- Specified by:
onList
in interface ExpressionVisitorBoolean
onKey
public boolean onKey(KeyExp exp)
- Specified by:
onKey
in interface ExpressionVisitorBoolean
onRef
public boolean onRef(ReferenceExp exp)
- Specified by:
onRef
in interface ExpressionVisitorBoolean
onOther
public boolean onOther(OtherExp exp)
- Specified by:
onOther
in interface ExpressionVisitorBoolean
onEpsilon
public boolean onEpsilon()
- Specified by:
onEpsilon
in interface ExpressionVisitorBoolean
onNullSet
public boolean onNullSet()
- Specified by:
onNullSet
in interface ExpressionVisitorBoolean
onAnyString
public boolean onAnyString()
- Specified by:
onAnyString
in interface ExpressionVisitorBoolean
onTypedString
public boolean onTypedString(TypedStringExp exp)
- Specified by:
onTypedString
in interface ExpressionVisitorBoolean
calc
public static int calc(Expression exp)