antlr
Class CommonToken

java.lang.Object
  |
  +--antlr.Token
        |
        +--antlr.CommonToken
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CommonHiddenStreamToken, XMLToken

public class CommonToken
extends Token


Field Summary
protected  int col
           
protected  int line
           
protected  String text
           
 
Fields inherited from class antlr.Token
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP
 
Constructor Summary
CommonToken()
           
CommonToken(int t, String txt)
           
CommonToken(String s)
           
 
Method Summary
 int getColumn()
          Return token's start column
 int getLine()
           
 String getText()
           
 void setColumn(int c)
           
 void setLine(int l)
           
 void setText(String s)
           
 String toString()
           
 
Methods inherited from class antlr.Token
getFilename, getType, setFilename, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

line

protected int line

text

protected String text

col

protected int col
Constructor Detail

CommonToken

public CommonToken()

CommonToken

public CommonToken(int t,
                   String txt)

CommonToken

public CommonToken(String s)
Method Detail

getLine

public int getLine()
Overrides:
getLine in class Token

getText

public String getText()
Overrides:
getText in class Token

setLine

public void setLine(int l)
Overrides:
setLine in class Token

setText

public void setText(String s)
Overrides:
setText in class Token

toString

public String toString()
Overrides:
toString in class Token

getColumn

public int getColumn()
Return token's start column

Overrides:
getColumn in class Token

setColumn

public void setColumn(int c)
Overrides:
setColumn in class Token


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.