| Modifier and Type | Class and Description |
|---|---|
| public class | DefaultParser.
The result of a delimited buffer. |
| public static class | |
| public static enum | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private DefaultParser. | |
| private char[] | |
| private int | |
| private boolean | |
| private boolean | |
| private char[] | |
| private String[] | |
| private char[] | |
| private char[] | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DefaultParser | |
| public DefaultParser | |
| public DefaultParser | |
| public DefaultParser | |
| public DefaultParser | |
| public DefaultParser | |
| public DefaultParser. | |
| public String | |
| public char[] | |
| public String[] | |
| public char[] | |
| public String | |
| private int | handleDelimiterAndGetRawWordLength(StringBuilder current, List<String> words, int rawWordStart, int rawWordCursor, int rawWordLength, int pos)
|
| private boolean | |
| public boolean | Returns: True if the character should be a delimiterThe complete command buffer buffer, final int The index of the character in the buffer pos)Returns true if the specified character is a whitespace parameter. |
| public boolean | Returns: true if the character at the specified position in the given buffer is a delimiter.the buffer to check in buffer, int the position of the character to check pos)Returns true if the character at the specified position if a delimiter. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the character at the specified position in the given buffer is an escape character and the character immediately preceding it is not an escape character.the buffer to check in buffer, final int the position of the character to check pos)Check if this character is a valid escape char (i.e. one that has not been escaped) |
| public boolean | Returns: true if the character at the specified position in the given buffer is an escape character and the character immediately preceding it is an escape character.the buffer to check in buffer, final int the position of the character to check pos)Check if a character is escaped (i.e. if the previous character is an escape) |
| public boolean | |
| public boolean | |
| public boolean | |
| private boolean | |
| private boolean | |
| public DefaultParser | |
| public ParsedLine | parse(final String line, final int cursor, Parser.
Implements jdk.
|
| public DefaultParser | |
| public DefaultParser | |
| public DefaultParser | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | validCommandName(String name)
Overrides default jdk.
|
| public boolean | validVariableName(String name)
Overrides default jdk.
|
| blockCommentDelims | back to summary |
|---|---|
| private DefaultParser. | |
| closingBrackets | back to summary |
|---|---|
| private char[] closingBrackets | |
| commandGroup | back to summary |
|---|---|
| private int commandGroup | |
| eofOnEscapedNewLine | back to summary |
|---|---|
| private boolean eofOnEscapedNewLine | |
| eofOnUnclosedQuote | back to summary |
|---|---|
| private boolean eofOnUnclosedQuote | |
| escapeChars | back to summary |
|---|---|
| private char[] escapeChars | |
| lineCommentDelims | back to summary |
|---|---|
| private String[] lineCommentDelims | |
| openingBrackets | back to summary |
|---|---|
| private char[] openingBrackets | |
| quoteChars | back to summary |
|---|---|
| private char[] quoteChars | |
| regexCommand | back to summary |
|---|---|
| private String regexCommand | |
| regexVariable | back to summary |
|---|---|
| private String regexVariable | |
| DefaultParser | back to summary |
|---|---|
| public DefaultParser() | |
| blockCommentDelims | back to summary |
|---|---|
| public DefaultParser blockCommentDelims(final DefaultParser. | |
| commandGroup | back to summary |
|---|---|
| public DefaultParser commandGroup(int commandGroup) | |
| eofOnEscapedNewLine | back to summary |
|---|---|
| public DefaultParser eofOnEscapedNewLine(boolean eofOnEscapedNewLine) | |
| eofOnUnclosedBracket | back to summary |
|---|---|
| public DefaultParser eofOnUnclosedBracket(DefaultParser. | |
| eofOnUnclosedQuote | back to summary |
|---|---|
| public DefaultParser eofOnUnclosedQuote(boolean eofOnUnclosedQuote) | |
| escapeChars | back to summary |
|---|---|
| public DefaultParser escapeChars(final char[] chars) | |
| getBlockCommentDelims | back to summary |
|---|---|
| public DefaultParser. | |
| getCommand | back to summary |
|---|---|
| public String getCommand(final String line) Overrides default jdk.
| |
| getEscapeChars | back to summary |
|---|---|
| public char[] getEscapeChars() | |
| getLineCommentDelims | back to summary |
|---|---|
| public String[] getLineCommentDelims() | |
| getQuoteChars | back to summary |
|---|---|
| public char[] getQuoteChars() | |
| getVariable | back to summary |
|---|---|
| public String getVariable(final String line) Overrides default jdk.
| |
| handleDelimiterAndGetRawWordLength | back to summary |
|---|---|
| private int handleDelimiterAndGetRawWordLength(StringBuilder current, List<String> words, int rawWordStart, int rawWordCursor, int rawWordLength, int pos) | |
| isCommentDelim | back to summary |
|---|---|
| private boolean isCommentDelim(final CharSequence buffer, final int pos, final String pattern) | |
| isDelimiter | back to summary |
|---|---|
| public boolean isDelimiter(final CharSequence buffer, final int pos) Returns true if the specified character is a whitespace parameter. Check to ensure that the character is not
escaped by any of
| |
| isDelimiterChar | back to summary |
|---|---|
| public boolean isDelimiterChar(CharSequence buffer, int pos) Returns true if the character at the specified position if a delimiter. This method will only be called if
the character is not enclosed in any of the
| |
| isEofOnEscapedNewLine | back to summary |
|---|---|
| public boolean isEofOnEscapedNewLine() | |
| isEofOnUnclosedQuote | back to summary |
|---|---|
| public boolean isEofOnUnclosedQuote() | |
| isEscapeChar | back to summary |
|---|---|
| public boolean isEscapeChar(char ch) Overrides default jdk.
| |
| isEscapeChar | back to summary |
|---|---|
| public boolean isEscapeChar(final CharSequence buffer, final int pos) Check if this character is a valid escape char (i.e. one that has not been escaped)
| |
| isEscaped | back to summary |
|---|---|
| public boolean isEscaped(final CharSequence buffer, final int pos) Check if a character is escaped (i.e. if the previous character is an escape)
| |
| isLineCommentStarted | back to summary |
|---|---|
| public boolean isLineCommentStarted(final CharSequence buffer, final int pos) | |
| isQuoteChar | back to summary |
|---|---|
| public boolean isQuoteChar(final CharSequence buffer, final int pos) | |
| isQuoted | back to summary |
|---|---|
| public boolean isQuoted(final CharSequence buffer, final int pos) | |
| isRawEscapeChar | back to summary |
|---|---|
| private boolean isRawEscapeChar(char key) | |
| isRawQuoteChar | back to summary |
|---|---|
| private boolean isRawQuoteChar(char key) | |
| lineCommentDelims | back to summary |
|---|---|
| public DefaultParser lineCommentDelims(final String[] lineCommentDelims) | |
| parse | back to summary |
|---|---|
| public ParsedLine parse(final String line, final int cursor, Parser. Implements jdk. | |
| quoteChars | back to summary |
|---|---|
| public DefaultParser quoteChars(final char[] chars) | |
| regexCommand | back to summary |
|---|---|
| public DefaultParser regexCommand(String regexCommand) | |
| regexVariable | back to summary |
|---|---|
| public DefaultParser regexVariable(String regexVariable) | |
| setBlockCommentDelims | back to summary |
|---|---|
| public void setBlockCommentDelims(DefaultParser. | |
| setCommandGroup | back to summary |
|---|---|
| public void setCommandGroup(int commandGroup) | |
| setEofOnEscapedNewLine | back to summary |
|---|---|
| public void setEofOnEscapedNewLine(boolean eofOnEscapedNewLine) | |
| setEofOnUnclosedBracket | back to summary |
|---|---|
| public void setEofOnUnclosedBracket(DefaultParser. | |
| setEofOnUnclosedQuote | back to summary |
|---|---|
| public void setEofOnUnclosedQuote(boolean eofOnUnclosedQuote) | |
| setEscapeChars | back to summary |
|---|---|
| public void setEscapeChars(final char[] chars) | |
| setLineCommentDelims | back to summary |
|---|---|
| public void setLineCommentDelims(String[] lineCommentDelims) | |
| setQuoteChars | back to summary |
|---|---|
| public void setQuoteChars(final char[] chars) | |
| setRegexCommand | back to summary |
|---|---|
| public void setRegexCommand(String regexCommand) | |
| setRegexVariable | back to summary |
|---|---|
| public void setRegexVariable(String regexVariable) | |
| validCommandName | back to summary |
|---|---|
| public boolean validCommandName(String name) Overrides default jdk.
| |
| validVariableName | back to summary |
|---|---|
| public boolean validVariableName(String name) Overrides default jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final String | |
| private final String | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | ArgumentList(final String line, final List<String> words, final int wordIndex, final int wordCursor, final int cursor)
Deprecated
|
| public | ArgumentList(final String
the command line being edited line, final List<String> the list of words words, final int the index of the current word in the list of words wordIndex, final int the cursor position within the current word wordCursor, final int the cursor position within the line cursor, final String the opening quote (usually '\"' or '\'') or null openingQuote, final int the cursor position inside the raw word (i.e. including quotes and escape characters) rawWordCursor, final int the raw word length, including quotes and escape characters rawWordLength)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | cursor()
Implements jdk. The cursor position within the line. |
| public CharSequence | escape(CharSequence candidate, boolean complete)
Implements jdk.
|
| public String | |
| public int | |
| public int | |
| public String | |
| public int | wordCursor()
Implements jdk. The cursor position within the current word. |
| public int | wordIndex()
Implements jdk. The index of the current word in the list of words. |
| public List |
| cursor | back to summary |
|---|---|
| private final int cursor | |
| line | back to summary |
|---|---|
| private final String line | |
| openingQuote | back to summary |
|---|---|
| private final String openingQuote | |
| rawWordCursor | back to summary |
|---|---|
| private final int rawWordCursor | |
| rawWordLength | back to summary |
|---|---|
| private final int rawWordLength | |
| wordCursor | back to summary |
|---|---|
| private final int wordCursor | |
| wordIndex | back to summary |
|---|---|
| private final int wordIndex | |
| words | back to summary |
|---|---|
| private final List<String> words | |
| ArgumentList | back to summary |
|---|---|
| public ArgumentList(final String line, final List<String> words, final int wordIndex, final int wordCursor, final int cursor)
Deprecated
| |
| ArgumentList | back to summary |
|---|---|
public ArgumentList(final String line, final List<String> words, final int wordIndex, final int wordCursor, final int cursor, final String openingQuote, final int rawWordCursor, final int rawWordLength)
| |
| cursor | back to summary |
|---|---|
| public int cursor() Implements jdk. Doc from jdk. The cursor position within the line. | |
| escape | back to summary |
|---|---|
| public CharSequence escape(CharSequence candidate, boolean complete) Implements jdk. | |
| line | back to summary |
|---|---|
| public String line() Implements jdk. Doc from jdk. The unparsed line. | |
| rawWordCursor | back to summary |
|---|---|
| public int rawWordCursor() Implements jdk.
| |
| rawWordLength | back to summary |
|---|---|
| public int rawWordLength() Implements jdk.
| |
| word | back to summary |
|---|---|
| public String word() Implements jdk. Doc from jdk. The current word being completed. If the cursor is after the last word, an empty string is returned. | |
| wordCursor | back to summary |
|---|---|
| public int wordCursor() Implements jdk. Doc from jdk. The cursor position within the current word. | |
| wordIndex | back to summary |
|---|---|
| public int wordIndex() Implements jdk. Doc from jdk. The index of the current word in the list of words. | |
| words | back to summary |
|---|---|
| public List Implements jdk. Doc from jdk. The list of words. | |
| Access | Constructor and Description |
|---|---|
| public |
| end | back to summary |
|---|---|
| private final String end | |
| start | back to summary |
|---|---|
| private final String start | |
| BlockCommentDelims | back to summary |
|---|---|
| public BlockCommentDelims(String start, String end) | |
| getEnd | back to summary |
|---|---|
| public String getEnd() | |
| getStart | back to summary |
|---|---|
| public String getStart() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultParser. | |
| public static final DefaultParser. | |
| public static final DefaultParser. | |
| public static final DefaultParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DefaultParser. | |
| public static DefaultParser. |
| ANGLE | back to summary |
|---|---|
| public static final DefaultParser. | |
| CURLY | back to summary |
|---|---|
| public static final DefaultParser. | |
| ROUND | back to summary |
|---|---|
| public static final DefaultParser. | |
| SQUARE | back to summary |
|---|---|
| public static final DefaultParser. | |
| Bracket | back to summary |
|---|---|
| private Bracket() | |
| valueOf | back to summary |
|---|---|
| public static DefaultParser. | |
| values | back to summary |
|---|---|
| public static DefaultParser. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private List | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public void | |
| public String | |
| public String | |
| public String | |
| public int | |
| public boolean | |
| public boolean |
| cursor | back to summary |
|---|---|
| private int cursor | |
| missingOpeningBracket | back to summary |
|---|---|
| private int missingOpeningBracket | |
| nested | back to summary |
|---|---|
| private List<Integer> nested | |
| nextClosingBracket | back to summary |
|---|---|
| private String nextClosingBracket | |
| openBrackets | back to summary |
|---|---|
| private int openBrackets | |
| BracketChecker | back to summary |
|---|---|
| public BracketChecker(int cursor) | |
| bracketId | back to summary |
|---|---|
| private int bracketId(final char[] brackets, final CharSequence buffer, final int pos) | |
| check | back to summary |
|---|---|
| public void check(final CharSequence buffer, final int pos) | |
| getMissingClosingBrackets | back to summary |
|---|---|
| public String getMissingClosingBrackets() | |
| getMissingOpeningBracket | back to summary |
|---|---|
| public String getMissingOpeningBracket() | |
| getNextClosingBracket | back to summary |
|---|---|
| public String getNextClosingBracket() | |
| getOpenBrackets | back to summary |
|---|---|
| public int getOpenBrackets() | |
| isClosingBracketMissing | back to summary |
|---|---|
| public boolean isClosingBracketMissing() | |
| isOpeningBracketMissing | back to summary |
|---|---|
| public boolean isOpeningBracketMissing() | |