public class StringCareLevelCalculator extends 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) |
Object |
onAnyString() |
Object |
onAttribute(AttributeExp exp) |
Object |
onChoice(ChoiceExp exp) |
Object |
onConcur(ConcurExp exp) |
Object |
onData(DataExp exp) |
Object |
onElement(ElementExp exp) |
Object |
onEpsilon() |
Object |
onInterleave(InterleaveExp p) |
Object |
onList(ListExp exp) |
Object |
onMixed(MixedExp exp) |
Object |
onNullSet() |
Object |
onOneOrMore(OneOrMoreExp exp) |
Object |
onOther(OtherExp exp) |
Object |
onRef(ReferenceExp exp) |
Object |
onSequence(SequenceExp exp) |
Object |
onValue(ValueExp exp) |
protected static final StringCareLevelCalculator theInstance
public Object onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitor
public Object onElement(ElementExp exp)
onElement
in interface ExpressionVisitor
public Object onMixed(MixedExp exp)
onMixed
in interface ExpressionVisitor
public Object onList(ListExp exp)
onList
in interface ExpressionVisitor
public Object onAnyString()
onAnyString
in interface ExpressionVisitor
public Object onData(DataExp exp)
onData
in interface ExpressionVisitor
public Object onValue(ValueExp exp)
onValue
in interface ExpressionVisitor
public Object onChoice(ChoiceExp exp)
onChoice
in interface ExpressionVisitor
public Object onOneOrMore(OneOrMoreExp exp)
onOneOrMore
in interface ExpressionVisitor
public Object onRef(ReferenceExp exp)
onRef
in interface ExpressionVisitor
public Object onOther(OtherExp exp)
onOther
in interface ExpressionVisitor
public Object onEpsilon()
onEpsilon
in interface ExpressionVisitor
public Object onNullSet()
onNullSet
in interface ExpressionVisitor
public Object onSequence(SequenceExp exp)
onSequence
in interface ExpressionVisitor
public Object onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitor
public Object onInterleave(InterleaveExp p)
onInterleave
in interface ExpressionVisitor
public static int calc(Expression exp)
Copyright © 2016 Oracle Corporation. All rights reserved.