Class TokenSet

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class TokenSet
    extends BitSet
    A class to represent a set of Token types. Will probably eventually move this into the Token.java.ftl as something available to all generated parsers.
    See Also:
    Serialized Form
    • Constructor Detail

      • TokenSet

        public TokenSet​(Grammar grammar)
      • TokenSet

        public TokenSet​(Grammar grammar,
                        boolean incomplete)
    • Method Detail

      • isIncomplete

        public boolean isIncomplete()
      • setIncomplete

        public void setIncomplete​(boolean incomplete)
      • getTokenNames

        public List<String> getTokenNames()
      • getFirstTokenName

        public String getFirstTokenName()
      • getTokenSetNames

        public List<String> getTokenSetNames()
      • getCommaDelimitedTokens

        public String getCommaDelimitedTokens()
      • not

        public void not()