public class TREXSequencedStringChecker extends Object implements ExpressionVisitor
In this checker, we introduce a function "f" that takes a string and computes the string-sensitivity of the pattern.
"f" returns 3 bits of information. One is whether it contains elements. Another is whehter it contains text. And the last is whether it contains DataExp/ValueExp.
"f" is computed recursively through the pattern.
| Constructor and Description |
|---|
TREXSequencedStringChecker(TREXBaseReader reader,
boolean _rejectTextInInterleave) |
| Modifier and Type | Method and Description |
|---|---|
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 exp) |
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) |
public TREXSequencedStringChecker(TREXBaseReader reader, boolean _rejectTextInInterleave)
public Object onRef(ReferenceExp exp)
onRef in interface ExpressionVisitorpublic Object onOther(OtherExp exp)
onOther in interface ExpressionVisitorpublic Object onInterleave(InterleaveExp exp)
onInterleave in interface ExpressionVisitorpublic Object onSequence(SequenceExp exp)
onSequence in interface ExpressionVisitorpublic Object onEpsilon()
onEpsilon in interface ExpressionVisitorpublic Object onNullSet()
onNullSet in interface ExpressionVisitorpublic Object onData(DataExp exp)
onData in interface ExpressionVisitorpublic Object onValue(ValueExp exp)
onValue in interface ExpressionVisitorpublic Object onList(ListExp exp)
onList in interface ExpressionVisitorpublic Object onAnyString()
onAnyString in interface ExpressionVisitorpublic Object onAttribute(AttributeExp exp)
onAttribute in interface ExpressionVisitorpublic Object onElement(ElementExp exp)
onElement in interface ExpressionVisitorpublic Object onChoice(ChoiceExp exp)
onChoice in interface ExpressionVisitorpublic Object onConcur(ConcurExp exp)
onConcur in interface ExpressionVisitorpublic Object onOneOrMore(OneOrMoreExp exp)
onOneOrMore in interface ExpressionVisitorpublic Object onMixed(MixedExp exp)
onMixed in interface ExpressionVisitorCopyright © 2014 Oracle Corporation. All Rights Reserved.