Class AbstractSplittingParser
java.lang.Object
parser.logical.AbstractSplittingParser
- Direct Known Subclasses:
ComparingExpressionParser, LogicalExpressionParser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDummy constructor to make more easy overridingAbstractSplittingParser
(String expression, ExpressionLogger log) -
Method Summary
Modifier and TypeMethodDescription(package private) static String[]
concatWithArrayCopy
(String[] array1, String[] array2) private static String
private static String[]
abstract boolean
evaluate()
getHelp()
abstract String
getName()
abstract String[]
Primary characters are processed first.abstract String[]
Primary characters are processed first.abstract String[]
Primary characters are processed first.abstract String[]
Primary characters are processed first.private static String
joinAsOr1n
(String[] chars) protected Pattern
-
Field Details
-
pattern1
-
pattern2
-
original
-
split
-
log
-
-
Constructor Details
-
AbstractSplittingParser
public AbstractSplittingParser()Dummy constructor to make more easy overriding -
AbstractSplittingParser
-
-
Method Details
-
toPattern
-
split
-
joinAsOr1n
-
concatWithArrayCopy
-
escape
-
escape
-
getOriginal
-
evaluate
public abstract boolean evaluate() -
getPrimaryChars1
Primary characters are processed first. Seondary second. The reason is, if some char is substring of another. Then first msut go the longer ones (which may contain secondary as substring) the goes secondary. Yah. it can be done bette.. by sorting by lenght and so on... but maybe next tim PrimaryChars1 are allowed without spaces- Returns:
- strings which are substituted first
-
getPrimaryChars2
Primary characters are processed first. Seondary second. The reason is, if some char is substring of another. Then first msut go the longer ones (which may contain secondary as substring) the goes secondary. Yah. it can be done bette.. by sorting by lenght and so on... but maybe next tim PrimaryChars2 are NOT allowed without spaces- Returns:
- strings which are substituted first
-
getSecondaryChars1
Primary characters are processed first. Seondary second. The reason is, if some char is substring of another. Then first msut go the longer ones (which may contain secondary as substring) the goes secondary. Yah. it can be done bette.. by sorting by lenght and so on... but maybe next tim SecondaryChars1 are allowed without spaces- Returns:
- characters which are subsituted second
-
getSecondaryChars2
Primary characters are processed first. Seondary second. The reason is, if some char is substring of another. Then first msut go the longer ones (which may contain secondary as substring) the goes secondary. Yah. it can be done bette.. by sorting by lenght and so on... but maybe next tim SecondaryChars2 are NOT allowed without spaces- Returns:
- characters which are subsituted second
-
getHelp
-
getName
-