| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | Parser.
Abstract base class for a |
| private static enum | Parser.
Used to indicate the parsers current state. |
| public static interface | Parser.
This interface defines all possible syntactic elements of a Type 4 function. |
| private static class | Parser.
Tokenizer for Type 4 functions. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | parse(CharSequence
the text source input, Parser.the syntax handler handlerParses a Type 4 function and sends the syntactic elements to the given syntax handler. |
| Parser | back to summary |
|---|---|
| private Parser() | |
| parse | back to summary |
|---|---|
| public static void parse(CharSequence input, Parser. Parses a Type 4 function and sends the syntactic elements to the given syntax handler.
| |
SyntaxHandler.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | comment(CharSequence
the comment text)Implements org. Called for a comment. |
| public void | newLine(CharSequence
the new line character (CR, LF, CR/LF or FF) text)Implements org. Indicates that a new line starts. |
| public void | whitespace(CharSequence
the whitespace text text)Implements org. Called when whitespace characters are encountered. |
| AbstractSyntaxHandler | back to summary |
|---|---|
| public AbstractSyntaxHandler() | |
| comment | back to summary |
|---|---|
| public void comment(CharSequence text) Implements org. Doc from org. Called for a comment.
| |
| newLine | back to summary |
|---|---|
| public void newLine(CharSequence text) Implements org. Doc from org. Indicates that a new line starts.
| |
| whitespace | back to summary |
|---|---|
| public void whitespace(CharSequence text) Implements org. Doc from org. Called when whitespace characters are encountered.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Parser. | |
| public static final Parser. | |
| public static final Parser. | |
| public static final Parser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Parser. | |
| public static Parser. |
| COMMENT | back to summary |
|---|---|
| public static final Parser. | |
| NEWLINE | back to summary |
|---|---|
| public static final Parser. | |
| TOKEN | back to summary |
|---|---|
| public static final Parser. | |
| WHITESPACE | back to summary |
|---|---|
| public static final Parser. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Parser. | |
| values | back to summary |
|---|---|
| public static Parser. | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | newLine(CharSequence
the new line character (CR, LF, CR/LF or FF) text)Indicates that a new line starts. |
| public void | |
| public void |
| comment | back to summary |
|---|---|
| public void comment(CharSequence text) Called for a comment.
| |
| newLine | back to summary |
|---|---|
| public void newLine(CharSequence text) Indicates that a new line starts.
| |
| token | back to summary |
|---|---|
| public void token(CharSequence text) Called when a token is encountered. No distinction between operators and values is done here.
| |
| whitespace | back to summary |
|---|---|
| public void whitespace(CharSequence text) Called when whitespace characters are encountered.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final StringBuilder | |
| private static final char | |
| private static final char | |
| private static final char | |
| private final Parser. | |
| private int | |
| private final CharSequence | |
| private static final char | |
| private static final char | |
| private static final char | |
| private Parser. | |
| private static final char |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private char | |
| private boolean | |
| private char | |
| private Parser. | |
| private char | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| buffer | back to summary |
|---|---|
| private final StringBuilder buffer | |
| CR | back to summary |
|---|---|
| private static final char CR | |
| EOT | back to summary |
|---|---|
| private static final char EOT | |
| FF | back to summary |
|---|---|
| private static final char FF | |
| handler | back to summary |
|---|---|
| private final Parser. | |
| index | back to summary |
|---|---|
| private int index | |
| input | back to summary |
|---|---|
| private final CharSequence input | |
| LF | back to summary |
|---|---|
| private static final char LF | |
| NUL | back to summary |
|---|---|
| private static final char NUL | |
| SPACE | back to summary |
|---|---|
| private static final char SPACE | |
| state | back to summary |
|---|---|
| private Parser. | |
| TAB | back to summary |
|---|---|
| private static final char TAB | |
| Tokenizer | back to summary |
|---|---|
| private Tokenizer(CharSequence text, Parser. | |
| currentChar | back to summary |
|---|---|
| private char currentChar() | |
| hasMore | back to summary |
|---|---|
| private boolean hasMore() | |
| nextChar | back to summary |
|---|---|
| private char nextChar() | |
| nextState | back to summary |
|---|---|
| private Parser. | |
| peek | back to summary |
|---|---|
| private char peek() | |
| scanComment | back to summary |
|---|---|
| private void scanComment() | |
| scanNewLine | back to summary |
|---|---|
| private void scanNewLine() | |
| scanToken | back to summary |
|---|---|
| private void scanToken() | |
| scanWhitespace | back to summary |
|---|---|
| private void scanWhitespace() | |
| tokenize | back to summary |
|---|---|
| private void tokenize() | |