compiler.lexical
Class Token

java.lang.Object
  extended by java_cup.runtime.Symbol
      extended by es.uned.compiler.lexical.TokenBase
          extended by compiler.lexical.Token
All Implemented Interfaces:
TokenIF

public class Token
extends TokenBase


Field Summary
 
Fields inherited from class java_cup.runtime.Symbol
left, parse_state, right, sym, value
 
Constructor Summary
Token()
          Constructor for Token.
Token(int id)
          Constructor for Token.
 
Method Summary
 int getColumn()
          Returns the column.
 int getId()
          Returns the id.
 java.lang.String getLexema()
          Returns the lexema.
 int getLine()
          Returns the line.
 void setColumn(int column)
          Sets The column.
 void setId(int id)
          Sets The id.
 void setLexema(java.lang.String lexema)
          Sets The lexema.
 void setLine(int line)
          Sets The line.
 
Methods inherited from class es.uned.compiler.lexical.TokenBase
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token

public Token()
Constructor for Token.


Token

public Token(int id)
Constructor for Token.

Parameters:
id - The token id.
Method Detail

getColumn

public int getColumn()
Returns the column.

Returns:
Returns the column.

getId

public int getId()
Returns the id.

Returns:
Returns the id.

getLexema

public java.lang.String getLexema()
Returns the lexema.

Returns:
Returns the lexema.

getLine

public int getLine()
Returns the line.

Returns:
Returns the line.

setColumn

public void setColumn(int column)
Sets The column.

Parameters:
column - The column to set.

setId

public void setId(int id)
Sets The id.

Parameters:
id - The id to set.

setLexema

public void setLexema(java.lang.String lexema)
Sets The lexema.

Parameters:
lexema - The lexema to set.

setLine

public void setLine(int line)
Sets The line.

Parameters:
line - The line to set.