Package org.openjdk.asmtools.jcoder
Class JcodTokens
- java.lang.Object
-
- org.openjdk.asmtools.jcoder.JcodTokens
-
public class JcodTokens extends java.lang.ObjectJcodTokens 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 Classes Modifier and Type Class Description static classJcodTokens.ConstTypeConstType A (typed) tag (constant) representing the type of Constant in the Constant Pool.static classJcodTokens.KeywordTypestatic classJcodTokens.TokenScanner Tokens (Definitive List)static classJcodTokens.TokenType
-
Field Summary
Fields Modifier and Type Field Description protected static intMaxKeywordsprotected static intMaxTokensInitialized keyword and token Hash Maps (and Reverse Tables)
-
Constructor Summary
Constructors Constructor Description JcodTokens()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JcodTokens.ConstTypeconstType(int i)static JcodTokens.ConstTypeconstType(java.lang.String parsekey)static intconstValue(java.lang.String stringValue)static JcodTokens.Tokenkeyword_token(int tk)static JcodTokens.Tokenkeyword_token(java.lang.String parsekey)static JcodTokens.Tokenkeyword_token_ID(java.lang.String ID)static JcodTokens.Tokenkeyword_token_ident(java.lang.String idValue)static intkeyword_token_int(java.lang.String idValue)static java.lang.StringkeywordName(int token)static JcodTokens.Tokentoken(int tk)static JcodTokens.Tokentoken(java.lang.String parsekey)static JcodTokens.Tokentoken_ID(java.lang.String ID)
-
-
-
Field Detail
-
MaxTokens
protected static final int MaxTokens
Initialized keyword and token Hash Maps (and Reverse Tables)- See Also:
- Constant Field Values
-
MaxKeywords
protected static final int MaxKeywords
- See Also:
- Constant Field Values
-
-
Method Detail
-
token
public static JcodTokens.Token token(int tk)
-
keyword_token
public static JcodTokens.Token keyword_token(int tk)
-
token
public static JcodTokens.Token token(java.lang.String parsekey)
-
keyword_token
public static JcodTokens.Token keyword_token(java.lang.String parsekey)
-
token_ID
public static JcodTokens.Token token_ID(java.lang.String ID)
-
keyword_token_ID
public static JcodTokens.Token keyword_token_ID(java.lang.String ID)
-
keywordName
public static java.lang.String keywordName(int token)
-
keyword_token_ident
public static JcodTokens.Token keyword_token_ident(java.lang.String idValue)
-
keyword_token_int
public static int keyword_token_int(java.lang.String idValue)
-
constType
public static JcodTokens.ConstType constType(int i)
-
constType
public static JcodTokens.ConstType constType(java.lang.String parsekey)
-
constValue
public static int constValue(java.lang.String stringValue)
-
-