public class StringCareLevelCalculator extends java.lang.Object implements ExpressionVisitor
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ANY_STRING |
private static java.lang.String |
NO_STRING |
private static java.lang.String |
SOME_STRING |
protected static StringCareLevelCalculator |
theInstance
singleton instance.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StringCareLevelCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calc(Expression exp) |
private java.lang.Object |
doChoice(BinaryExp 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
private static final java.lang.String ANY_STRING
private static final java.lang.String NO_STRING
private static final java.lang.String SOME_STRING
public java.lang.Object onAttribute(AttributeExp exp)
onAttribute in interface ExpressionVisitorpublic java.lang.Object onElement(ElementExp exp)
onElement in interface ExpressionVisitorpublic java.lang.Object onMixed(MixedExp exp)
onMixed in interface ExpressionVisitorpublic java.lang.Object onList(ListExp exp)
onList in interface ExpressionVisitorpublic java.lang.Object onAnyString()
onAnyString in interface ExpressionVisitorpublic java.lang.Object onData(DataExp exp)
onData in interface ExpressionVisitorpublic java.lang.Object onValue(ValueExp exp)
onValue in interface ExpressionVisitorpublic java.lang.Object onChoice(ChoiceExp exp)
onChoice in interface ExpressionVisitorprivate java.lang.Object doChoice(BinaryExp exp)
public java.lang.Object onOneOrMore(OneOrMoreExp exp)
onOneOrMore in interface ExpressionVisitorpublic java.lang.Object onRef(ReferenceExp exp)
onRef in interface ExpressionVisitorpublic java.lang.Object onOther(OtherExp exp)
onOther in interface ExpressionVisitorpublic java.lang.Object onEpsilon()
onEpsilon in interface ExpressionVisitorpublic java.lang.Object onNullSet()
onNullSet in interface ExpressionVisitorpublic java.lang.Object onSequence(SequenceExp exp)
onSequence in interface ExpressionVisitorpublic java.lang.Object onConcur(ConcurExp exp)
onConcur in interface ExpressionVisitorpublic java.lang.Object onInterleave(InterleaveExp p)
onInterleave in interface ExpressionVisitorpublic static int calc(Expression exp)