Package com.javacc.core
Class TokenSet
- java.lang.Object
-
- java.util.BitSet
-
- com.javacc.core.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommaDelimitedTokens()StringgetFirstTokenName()List<String>getTokenNames()List<String>getTokenSetNames()booleanisIncomplete()voidnot()voidsetIncomplete(boolean incomplete)long[]toLongArray()-
Methods inherited from class java.util.BitSet
and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, previousClearBit, previousSetBit, set, set, set, set, size, stream, toByteArray, toString, valueOf, valueOf, valueOf, valueOf, xor
-
-
-
-
Method Detail
-
isIncomplete
public boolean isIncomplete()
-
setIncomplete
public void setIncomplete(boolean incomplete)
-
toLongArray
public long[] toLongArray()
- Overrides:
toLongArrayin classBitSet
-
getFirstTokenName
public String getFirstTokenName()
-
getCommaDelimitedTokens
public String getCommaDelimitedTokens()
-
not
public void not()
-
-