public abstract class BashLexerBase extends AbstractBashLexer
| Modifier and Type | Field and Description |
|---|---|
static int |
S_ARITH |
static int |
S_ARITH_ARRAY_MODE |
static int |
S_ARITH_SQUARE_MODE |
static int |
S_ARRAY |
static int |
S_ASSIGNMENT_LIST |
static int |
S_BACKQUOTE |
static int |
S_CASE |
static int |
S_CASE_PATTERN |
static int |
S_DOLLAR_PREFIXED |
static int |
S_PARAM_EXPANSION |
static int |
S_PARAM_EXPANSION_DELIMITER |
static int |
S_PARAM_EXPANSION_PATTERN |
static int |
S_PARAM_EXPANSION_REPLACEMENT |
static int |
S_SUBSHELL |
static int |
S_TEST |
static int |
S_TEST_COMMAND |
static int |
X_HERE_STRING |
static int |
X_HEREDOC |
static int |
X_HEREDOC_MARKER |
static int |
X_HEREDOC_MARKER_IGNORE_TABS |
static int |
X_STRINGMODE |
static int |
YYEOF
This character denotes the end of file
|
static int |
YYINITIAL
lexical states
|
| Constructor and Description |
|---|
BashLexerBase(Reader in)
Creates a new scanner
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeHereStringIfAvailable()
Closes a
here_string content token if the lexer is currently reading a here string |
protected void |
yybegin(int newState)
Enters a new lexical state
|
protected int |
yychar()
Returns the char number from beginning of input stream.
|
protected char |
yycharat(int pos)
Returns the character at position pos from the
matched text.
|
protected void |
yyclose()
Closes the input stream
|
protected int |
yycolumn()
Returns the column number from beginning of the line (starting from 0).
|
protected int |
yylength()
Returns the length of the matched text region.
|
protected Token |
yylex()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
protected int |
yyline()
Returns the start line number from beginning of input stream (starting from 0).
|
protected void |
yypushback(int number)
Pushes the specified amount of characters back into the input stream.
|
protected void |
yyreset(Reader reader)
Resets the scanner to read from a new input stream.
|
protected int |
yystate()
Returns the current lexical state.
|
protected String |
yytext()
Returns the text matched by the current regular expression.
|
backToPreviousState, decOpenParenthesisCount, enterHereStringContent, goToState, heredocState, incOpenParenthesisCount, isBash4, isEmptyConditionalCommand, isInCaseBody, isInHereStringContent, isInState, isParamExpansionHash, isParamExpansionOther, isParamExpansionWord, leaveHereStringContent, openParenthesisCount, popStates, setEmptyConditionalCommand, setInCaseBody, setParamExpansionHash, setParamExpansionOther, setParamExpansionWord, stringParsingState, token, tokenpublic static final int YYEOF
public static final int YYINITIAL
public static final int S_TEST
public static final int S_TEST_COMMAND
public static final int S_ARITH
public static final int S_ARITH_SQUARE_MODE
public static final int S_ARITH_ARRAY_MODE
public static final int S_CASE
public static final int S_CASE_PATTERN
public static final int S_SUBSHELL
public static final int S_DOLLAR_PREFIXED
public static final int S_ARRAY
public static final int S_ASSIGNMENT_LIST
public static final int X_STRINGMODE
public static final int S_PARAM_EXPANSION
public static final int S_PARAM_EXPANSION_PATTERN
public static final int S_PARAM_EXPANSION_DELIMITER
public static final int S_PARAM_EXPANSION_REPLACEMENT
public static final int S_BACKQUOTE
public static final int X_HEREDOC_MARKER
public static final int X_HEREDOC_MARKER_IGNORE_TABS
public static final int X_HEREDOC
public static final int X_HERE_STRING
public BashLexerBase(Reader in)
in - the java.io.Reader to read input from.protected int yychar()
AbstractBashLexeryychar in class AbstractBashLexerprotected int yyline()
AbstractBashLexeryyline in class AbstractBashLexerprotected int yycolumn()
AbstractBashLexeryycolumn in class AbstractBashLexerprotected void closeHereStringIfAvailable()
here_string content token if the lexer is currently reading a here stringprotected final void yyclose()
throws IOException
IOException - if an error occurred while closing the readerprotected final void yyreset(Reader reader)
yyreset in class AbstractBashLexerreader - the new input streamprotected final int yystate()
yystate in class AbstractBashLexerprotected final void yybegin(int newState)
yybegin in class AbstractBashLexernewState - the new lexical stateprotected final String yytext()
yytext in class AbstractBashLexerprotected final char yycharat(int pos)
yycharat in class AbstractBashLexerpos - the position of the character to fetch.
A value from 0 to yylength()-1.protected final int yylength()
yylength in class AbstractBashLexerprotected void yypushback(int number)
number - the number of characters to be read again.
This number must not be greater than yylength()!protected Token yylex() throws IOException
yylex in class AbstractBashLexerIOException - if any I/O-Error occursCopyright © 2018–2019. All rights reserved.