public class TREXSequencedStringChecker extends java.lang.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 |
---|---|
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 exp) |
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) |
public TREXSequencedStringChecker(TREXBaseReader reader, boolean _rejectTextInInterleave)
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 onInterleave(InterleaveExp exp)
onInterleave
in interface ExpressionVisitor
public java.lang.Object onSequence(SequenceExp exp)
onSequence
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 onData(DataExp exp)
onData
in interface ExpressionVisitor
public java.lang.Object onValue(ValueExp exp)
onValue
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 onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitor
public java.lang.Object onElement(ElementExp exp)
onElement
in interface ExpressionVisitor
public java.lang.Object onChoice(ChoiceExp exp)
onChoice
in interface ExpressionVisitor
public java.lang.Object onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitor
public java.lang.Object onOneOrMore(OneOrMoreExp exp)
onOneOrMore
in interface ExpressionVisitor
public java.lang.Object onMixed(MixedExp exp)
onMixed
in interface ExpressionVisitor
MSV