Package org.openjdk.asmtools.jcoder
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 enum
ConstType A (typed) tag (constant) representing the type of Constant in the Constant Pool.static enum
static enum
Scanner Tokens (Definitive List)static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static HashMap<Integer,
JcodTokens.ConstType> protected static final int
protected static final int
Initialized keyword and token Hash Maps (and Reverse Tables)private static HashMap<String,
JcodTokens.ConstType> 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 JcodTokens.ConstType
constType
(int i) static JcodTokens.ConstType
static int
constValue
(String stringValue) static JcodTokens.Token
keyword_token
(int tk) static JcodTokens.Token
keyword_token
(String parsekey) static JcodTokens.Token
static JcodTokens.Token
keyword_token_ident
(String idValue) static int
keyword_token_int
(String idValue) static String
keywordName
(int token) private static void
private static void
static JcodTokens.Token
token
(int tk) static JcodTokens.Token
static 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
-
NameToConstantType
-
ConstantTypes
-
-
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
-
constType
-
constType
-
registerConstantType
-
constValue
-