Class Tokens

    • Constructor Detail

      • Tokens

        public Tokens()
    • Method Detail

      • getTokenIndex

        public static int getTokenIndex​(String tokenName)
      • getTokenId

        public static int getTokenId​(String tokenName)
      • getTokenName

        public static String getTokenName​(int tokenId)
      • getTokenDescription

        public static String getTokenDescription​(int tokenId)
      • getTokenDescription

        public static String getTokenDescription​(String tokenName)
      • getTokenNamesStr

        public static String getTokenNamesStr()
      • getTokenNames

        public static List<String> getTokenNames()
        Gets list of names of all tokens.
        Returns:
        List of available token names.
      • getTokenIDs

        public static List<Integer> getTokenIDs()
        Gets list of IDs of all tokens.
        Returns:
        List of available token IDs.
      • getTokenIDs

        public static List<Integer> getTokenIDs​(List<String> tokenNames)
        Gets list of IDs of the given tokens.
        Returns:
        List of token IDs.
      • getFilteredList

        public Tokens getFilteredList​(String... tokenNames)
        Return a list of TokenType objects. If tokenNames are specified, only the tokens with those names will be placed in the resulting list. If tokenNames is omitted, the list of all tokens will be returned.
        Parameters:
        tokenNames - Optional array of strings with token names to include.
        Returns:
        List of tokens.
      • getExcludedFilteredList

        public Tokens getExcludedFilteredList​(String... tokenNames)
        Return a list of TokenType objects. If tokenNames are specified, they will be excluded.
        Parameters:
        tokenNames - Optional array of strings of token names to exclude.
        Returns:
        List of tokens.
      • fixRanges

        public void fixRanges​(List<Integer> markerPositions)