public class ReadTable extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ReadTable.DispatchTable |
Modifier and Type | Field and Description |
---|---|
protected Map<Character,ReadTable.DispatchTable> |
dispatchTables |
protected Map<Character,IReaderMacroFunc> |
readerMacroFunctions |
protected Keyword |
readtableCase |
protected Map<Character,Byte> |
syntax |
static byte |
SYNTAX_TYPE_CONSTITUENT |
static byte |
SYNTAX_TYPE_MULTIPLE_ESCAPE |
static byte |
SYNTAX_TYPE_NON_TERMINATING_MACRO |
static byte |
SYNTAX_TYPE_SINGLE_ESCAPE |
static byte |
SYNTAX_TYPE_TERMINATING_MACRO |
static byte |
SYNTAX_TYPE_WHITESPACE |
Constructor and Description |
---|
ReadTable() |
Modifier and Type | Method and Description |
---|---|
void |
checkInvalid(char c)
Ensure that character is not invalid.
|
IDispatchMacroFunc |
getDispatchMacroCharacter(char dispChar,
char subChar)
return dispatch function for a dispatch characters pair.
|
IReaderMacroFunc |
getReaderMacroFunction(char c) |
Keyword |
getReadtableCase() |
byte |
getSyntaxType(char c) |
protected void |
initialize() |
boolean |
isInvalid(char c)
Return true if character belongs to the invalid character class.
|
boolean |
isWhitespace(char c) |
public static final byte SYNTAX_TYPE_CONSTITUENT
public static final byte SYNTAX_TYPE_WHITESPACE
public static final byte SYNTAX_TYPE_TERMINATING_MACRO
public static final byte SYNTAX_TYPE_NON_TERMINATING_MACRO
public static final byte SYNTAX_TYPE_SINGLE_ESCAPE
public static final byte SYNTAX_TYPE_MULTIPLE_ESCAPE
protected final Map<Character,IReaderMacroFunc> readerMacroFunctions
protected Map<Character,ReadTable.DispatchTable> dispatchTables
protected Keyword readtableCase
public final IReaderMacroFunc getReaderMacroFunction(char c)
protected void initialize()
public final IDispatchMacroFunc getDispatchMacroCharacter(char dispChar, char subChar) throws ParserException
ParserException
public final boolean isWhitespace(char c)
public final byte getSyntaxType(char c)
public final boolean isInvalid(char c)
public final Keyword getReadtableCase()
public final void checkInvalid(char c) throws ParserException
ParserException
Copyright © 2022. All rights reserved.