Package jtb.cparser.syntaxtree
Class NodeToken
- Object
-
- NodeToken
-
- All Implemented Interfaces:
Serializable
,Node
public class NodeToken extends Object implements Node
Represents a single token in the grammar. If the "-tk" option is used, also contains a Vector of preceding special tokens.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
beginColumn
int
beginLine
int
endColumn
int
endLine
int
kind
Vector<NodeToken>
specialTokens
String
tokenImage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor v)
void
addSpecial(NodeToken s)
NodeToken
getSpecialAt(int i)
int
numSpecials()
String
toString()
void
trimSpecials()
String
withSpecials()
-
-
-
Field Detail
-
tokenImage
public String tokenImage
-
specialTokens
public Vector<NodeToken> specialTokens
-
beginLine
public int beginLine
-
beginColumn
public int beginColumn
-
endLine
public int endLine
-
endColumn
public int endColumn
-
kind
public int kind
-
-
Method Detail
-
getSpecialAt
public NodeToken getSpecialAt(int i)
-
numSpecials
public int numSpecials()
-
addSpecial
public void addSpecial(NodeToken s)
-
trimSpecials
public void trimSpecials()
-
withSpecials
public String withSpecials()
-
-