itec.minicompiler
Class IdentToken

java.lang.Object
  extended byitec.minicompiler.Token
      extended byitec.minicompiler.IdentToken

public class IdentToken
extends Token

The IdentToken implements an identifier found in the source code. It contains the value of the identifier (it's character sequence) together with the the kind.

Version:
1.0 (29.09.2004)
Author:
Stefan Leitner, Stefan Schauer

Field Summary
private  java.lang.String value
          The value of the IdentToken
 
Fields inherited from class itec.minicompiler.Token
 
Constructor Summary
IdentToken(int k, java.lang.String v)
          Initialize the IdentToken with a kind k and a value v.
 
Method Summary
 java.lang.String getValue()
          Return the value of the actual IdentToken.
 void setValue(java.lang.String v)
          Set the value of the actual IdentToken.
 java.lang.String toString()
          Generate a String-representation of the IdentToken.
 
Methods inherited from class itec.minicompiler.Token
getKind, setKind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private java.lang.String value
The value of the IdentToken

Constructor Detail

IdentToken

public IdentToken(int k,
                  java.lang.String v)
Initialize the IdentToken with a kind k and a value v.

Parameters:
k - The kind of the IdentToken
v - The value of the represented identifier
Method Detail

getValue

public java.lang.String getValue()
Return the value of the actual IdentToken.

Returns:
The value of the represented identifier

setValue

public void setValue(java.lang.String v)
Set the value of the actual IdentToken.

Parameters:
v - The new value of the IdentToken

toString

public java.lang.String toString()
Generate a String-representation of the IdentToken.

See Also:
Object.toString()