org.codehaus.groovy.antlr
Class GroovySourceToken

This is a Token sub class to track line information

author:
Jochen Theodorou

Field Summary
 int col
           
 int colLast
           
 int line
           
 int lineLast
           
 String text
           
 
Constructor Summary
GroovySourceToken(int t)
            Constructor using a token type
 
Method Summary
int getColumn()
          
int getColumnLast()
          
int getLine()
          
int getLineLast()
          
String getText()
           get the source token text
void setColumn(int c)
          
void setColumnLast(int colLast)
          
void setLine(int l)
          
void setLineLast(int lineLast)
          
void setText(String s)
           set the source token text
String toString()
          
 

Constructor Detail

GroovySourceToken

public GroovySourceToken(int t)
Constructor using a token type
param:
t the type


Method Detail

getColumn

public int getColumn()


getColumnLast

public int getColumnLast()


getLine

public int getLine()


getLineLast

public int getLineLast()


getText

public String getText()
get the source token text
return:
the source token text


setColumn

public void setColumn(int c)


setColumnLast

public void setColumnLast(int colLast)


setLine

public void setLine(int l)


setLineLast

public void setLineLast(int lineLast)


setText

public void setText(String s)
set the source token text
param:
s the text


toString

public String toString()