public class StringCareLevelCalculator extends java.lang.Object implements ExpressionVisitor
Modifier and Type | Field and Description |
---|---|
protected static StringCareLevelCalculator |
theInstance
singleton instance.
|
Modifier | Constructor and Description |
---|---|
protected |
StringCareLevelCalculator() |
Modifier and Type | Method and Description |
---|---|
static int |
calc(Expression exp) |
java.lang.Object |
onAnyString() |
java.lang.Object |
onAttribute(AttributeExp exp) |
java.lang.Object |
onChoice(ChoiceExp exp) |
java.lang.Object |
onConcur(ConcurExp exp) |
java.lang.Object |
onData(DataExp exp) |
java.lang.Object |
onElement(ElementExp exp) |
java.lang.Object |
onEpsilon() |
java.lang.Object |
onInterleave(InterleaveExp p) |
java.lang.Object |
onList(ListExp exp) |
java.lang.Object |
onMixed(MixedExp exp) |
java.lang.Object |
onNullSet() |
java.lang.Object |
onOneOrMore(OneOrMoreExp exp) |
java.lang.Object |
onOther(OtherExp exp) |
java.lang.Object |
onRef(ReferenceExp exp) |
java.lang.Object |
onSequence(SequenceExp exp) |
java.lang.Object |
onValue(ValueExp exp) |
protected static final StringCareLevelCalculator theInstance
public java.lang.Object onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitor
public java.lang.Object onElement(ElementExp exp)
onElement
in interface ExpressionVisitor
public java.lang.Object onMixed(MixedExp exp)
onMixed
in interface ExpressionVisitor
public java.lang.Object onList(ListExp exp)
onList
in interface ExpressionVisitor
public java.lang.Object onAnyString()
onAnyString
in interface ExpressionVisitor
public java.lang.Object onData(DataExp exp)
onData
in interface ExpressionVisitor
public java.lang.Object onValue(ValueExp exp)
onValue
in interface ExpressionVisitor
public java.lang.Object onChoice(ChoiceExp exp)
onChoice
in interface ExpressionVisitor
public java.lang.Object onOneOrMore(OneOrMoreExp exp)
onOneOrMore
in interface ExpressionVisitor
public java.lang.Object onRef(ReferenceExp exp)
onRef
in interface ExpressionVisitor
public java.lang.Object onOther(OtherExp exp)
onOther
in interface ExpressionVisitor
public java.lang.Object onEpsilon()
onEpsilon
in interface ExpressionVisitor
public java.lang.Object onNullSet()
onNullSet
in interface ExpressionVisitor
public java.lang.Object onSequence(SequenceExp exp)
onSequence
in interface ExpressionVisitor
public java.lang.Object onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitor
public java.lang.Object onInterleave(InterleaveExp p)
onInterleave
in interface ExpressionVisitor
public static int calc(Expression exp)
MSV