Class JcodTokens


  • public class JcodTokens
    extends java.lang.Object
    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.
    • Field Detail

      • MaxTokens

        protected static final int MaxTokens
        Initialized keyword and token Hash Maps (and Reverse Tables)
        See Also:
        Constant Field Values
      • TagToTokens

        private static java.util.HashMap<java.lang.Integer,​JcodTokens.Token> TagToTokens
      • SymbolToTokens

        private static java.util.HashMap<java.lang.String,​JcodTokens.Token> SymbolToTokens
      • ParsekeyToTokens

        private static java.util.HashMap<java.lang.String,​JcodTokens.Token> ParsekeyToTokens
      • TagToKeywords

        private static java.util.HashMap<java.lang.Integer,​JcodTokens.Token> TagToKeywords
      • SymbolToKeywords

        private static java.util.HashMap<java.lang.String,​JcodTokens.Token> SymbolToKeywords
      • ParsekeyToKeywords

        private static java.util.HashMap<java.lang.String,​JcodTokens.Token> ParsekeyToKeywords
      • NameToConstantType

        private static java.util.HashMap<java.lang.String,​JcodTokens.ConstType> NameToConstantType
      • ConstantTypes

        private static java.util.HashMap<java.lang.Integer,​JcodTokens.ConstType> ConstantTypes
    • Constructor Detail

      • JcodTokens

        public JcodTokens()
    • Method Detail

      • keyword_token

        public static JcodTokens.Token keyword_token​(java.lang.String parsekey)
      • 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)
      • constValue

        public static int constValue​(java.lang.String stringValue)