Class JcodTokens
java.lang.Object
org.openjdk.asmtools.jcoder.JcodTokens
JcodTokens
This class contains tokens specific to parsing JCOD syntax.
The classes in JcodTokens are following a Singleton Pattern. These classes are Enums, and they are contained in private hash maps (lookup tables and reverse lookup tables). These hash maps all have public accessors, which clients use to look-up enums.
Tokens in this table carry no external state, and are typically treated as constants. They do not need to be reset.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumScanner Tokens (Definitive List)static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intInitialized keyword and token Hash Maps (and Reverse Tables)private static HashMap<String, JcodTokens.Token> private static HashMap<String, JcodTokens.Token> private static HashMap<String, JcodTokens.Token> private static HashMap<String, JcodTokens.Token> private static HashMap<Integer, JcodTokens.Token> private static HashMap<Integer, JcodTokens.Token> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetConstTagByParseString(String stringValue) static JcodTokens.Tokenkeyword_token(int tk) static JcodTokens.Tokenkeyword_token(String parsekey) static JcodTokens.Tokenstatic JcodTokens.Tokenkeyword_token_ident(String idValue) static intkeyword_token_int(String idValue) static StringkeywordName(int token) private static voidstatic JcodTokens.Tokentoken(int tk) static JcodTokens.Tokenstatic JcodTokens.Token
-
Field Details
-
MaxTokens
protected static final int MaxTokensInitialized keyword and token Hash Maps (and Reverse Tables)- See Also:
-
TagToTokens
-
SymbolToTokens
-
ParsekeyToTokens
-
MaxKeywords
protected static final int MaxKeywords- See Also:
-
TagToKeywords
-
SymbolToKeywords
-
ParsekeyToKeywords
-
-
Constructor Details
-
JcodTokens
public JcodTokens()
-
-
Method Details
-
registerToken
-
token
-
keyword_token
-
token
-
keyword_token
-
token_ID
-
keyword_token_ID
-
keywordName
-
keyword_token_ident
-
keyword_token_int
-
getConstTagByParseString
-