Class StringToken
java.lang.Object
org.antlr.v4.runtime.CommonToken
io.github.douira.glsl_transformer.generic.StringToken
- All Implemented Interfaces:
Serializable,org.antlr.v4.runtime.Token,org.antlr.v4.runtime.WritableToken
public class StringToken
extends org.antlr.v4.runtime.CommonToken
The string token allows the creation of a custom token with any string as the
token's content.
- See Also:
-
Field Summary
Fields inherited from class org.antlr.v4.runtime.CommonToken
channel, charPositionInLine, EMPTY_SOURCE, index, line, source, start, stop, text, typeFields inherited from interface org.antlr.v4.runtime.Token
DEFAULT_CHANNEL, EOF, EPSILON, HIDDEN_CHANNEL, INVALID_TYPE, MIN_USER_CHANNEL_VALUE, MIN_USER_TOKEN_TYPE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.antlr.v4.runtime.CommonToken
getChannel, getCharPositionInLine, getInputStream, getLine, getStartIndex, getStopIndex, getText, getTokenIndex, getTokenSource, getType, setChannel, setCharPositionInLine, setLine, setStartIndex, setStopIndex, setText, setTokenIndex, setType, toString, toString
-
Constructor Details
-
StringToken
Creates a new string token with a given string.- Parameters:
text- The string to make a token out of
-