antlr

Class TokenSymbol

Known Direct Subclasses:
StringLiteralSymbol

(package private) class TokenSymbol
extends GrammarSymbol

Field Summary

protected String
ASTNodeType
Set to a value in the tokens {...} section
protected String
paraphrase
describes what token matches in "human terms"
protected int
ttype

Fields inherited from class antlr.GrammarSymbol

id

Constructor Summary

TokenSymbol(String r)

Method Summary

String
getASTNodeType()
String
getParaphrase()
int
getTokenType()
void
setASTNodeType(String type)
void
setParaphrase(String p)
void
setTokenType(int t)

Methods inherited from class antlr.GrammarSymbol

getId, setId

Field Details

ASTNodeType

protected String ASTNodeType
Set to a value in the tokens {...} section

paraphrase

protected String paraphrase
describes what token matches in "human terms"

ttype

protected int ttype

Constructor Details

TokenSymbol

public TokenSymbol(String r)

Method Details

getASTNodeType

public String getASTNodeType()

getParaphrase

public String getParaphrase()

getTokenType

public int getTokenType()

setASTNodeType

public void setASTNodeType(String type)

setParaphrase

public void setParaphrase(String p)

setTokenType

public void setTokenType(int t)