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.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | checkedExps
set of checked Expressions. |
| private final Map | checkedRefExps
set of checked ReferenceExps. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final Integer[] | intPool
integer pool implementation. |
| private final TREXBaseReader | |
| private final boolean | rejectTextInInterleave
If this flag is set to true, this class raises an error for anyStrings in two branches of interleave. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| private static final int |
| checkedExps | back to summary |
|---|---|
| private final Set<Expression> checkedExps set of checked Expressions. once an ElementExp/AttributeExp is checked, it will be added to this set. this set is used to prevent infinite recursion. | |
| checkedRefExps | back to summary |
|---|---|
| private final Map<ReferenceExp, Object> checkedRefExps set of checked ReferenceExps. Once a ReferenceExp is checked, it will be added (with its result) to this map. This is useful to speed up the check. | |
| HAS_ANYSTRING | back to summary |
|---|---|
| private static final int HAS_ANYSTRING | |
| HAS_DATA | back to summary |
|---|---|
| private static final int HAS_DATA | |
| HAS_ELEMENT | back to summary |
|---|---|
| private static final int HAS_ELEMENT | |
| intPool | back to summary |
|---|---|
| private static final Integer[] intPool integer pool implementation. | |
| reader | back to summary |
|---|---|
| private final TREXBaseReader reader | |
| rejectTextInInterleave | back to summary |
|---|---|
| private final boolean rejectTextInInterleave If this flag is set to true, this class raises an error for anyStrings in two branches of interleave. | |
| TREXSequencedStringChecker | back to summary |
|---|---|
| public TREXSequencedStringChecker(TREXBaseReader reader, boolean _rejectTextInInterleave) | |
| isError | back to summary |
|---|---|
| private static boolean isError(Object o1, Object o2) It is an error if a pattern with data is combined to other patterns. | |
| merge | back to summary |
|---|---|
| private static Object merge(Object o1, Object o2) | |
| onAnyString | back to summary |
|---|---|
| public Object onAnyString() Implements com. | |
| onAttribute | back to summary |
|---|---|
| public Object onAttribute(AttributeExp exp) Implements com. | |
| onChoice | back to summary |
|---|---|
| public Object onChoice(ChoiceExp exp) Implements com. | |
| onConcur | back to summary |
|---|---|
| public Object onConcur(ConcurExp exp) Implements com. | |
| onData | back to summary |
|---|---|
| public Object onData(DataExp exp) Implements com. | |
| onElement | back to summary |
|---|---|
| public Object onElement(ElementExp exp) Implements com. | |
| onEpsilon | back to summary |
|---|---|
| public Object onEpsilon() Implements com. | |
| onInterleave | back to summary |
|---|---|
| public Object onInterleave(InterleaveExp exp) Implements com. | |
| onList | back to summary |
|---|---|
| public Object onList(ListExp exp) Implements com. | |
| onMixed | back to summary |
|---|---|
| public Object onMixed(MixedExp exp) Implements com. | |
| onNullSet | back to summary |
|---|---|
| public Object onNullSet() Implements com. | |
| onOneOrMore | back to summary |
|---|---|
| public Object onOneOrMore(OneOrMoreExp exp) Implements com. | |
| onOther | back to summary |
|---|---|
| public Object onOther(OtherExp exp) Implements com. | |
| onRef | back to summary |
|---|---|
| public Object onRef(ReferenceExp exp) Implements com. | |
| onSequence | back to summary |
|---|---|
| public Object onSequence(SequenceExp exp) Implements com. | |
| onValue | back to summary |
|---|---|
| public Object onValue(ValueExp exp) Implements com. | |
| toInt | back to summary |
|---|---|
| private static final int toInt(Object o) | |