Class CustomScanner
java.lang.Object
parser.CustomScanner
- Since:
- 2011 Objects of this class scans a string into tokens based on a list of tokenizer values.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomScanner
(String input, boolean includeTokensInOutput, String... splitterTokens) CustomScanner
(String input, boolean includeTokensInOutput, String[] moreTokens, String... tokens) CustomScanner
(String input, boolean includeTokensInOutput, String[] splitterTokens, String[] splitterTokens1, String... splitterTokens2) A convenience constructor used when there exists more than one array containing the tokenizer data. -
Method Summary
-
Field Details
-
input
The input to be scanned into tokens. -
tokens
The tokens to be employed in splitting the input. -
includeTokensInOutput
private boolean includeTokensInOutputIf true the tokens will be included in the output.
-
-
Constructor Details
-
CustomScanner
- Parameters:
input
- The input to scan.includeTokensInOutput
- Will allow the splitting tokens to be added to the final scan if this attribute is set to true.splitterTokens
- An array of tokens..input as a variable argument list... on which the input is to be split.
-
CustomScanner
-
CustomScanner
public CustomScanner(String input, boolean includeTokensInOutput, String[] splitterTokens, String[] splitterTokens1, String... splitterTokens2) A convenience constructor used when there exists more than one array containing the tokenizer data.- Parameters:
input
- The input to scan.includeTokensInOutput
- Will allow the splitting tokens to be added to the final scan if this attribute is set to true.splitterTokens
- An array of tokens on which the input is to be split.splitterTokens1
- A second array of tokens on which the input is to be split.splitterTokens2
- A second array of tokens..input as a variable argument list... on which the input is to be split.
-
-
Method Details
-
scan
-
main
-
main1
-