koala.dynamicjava.tree
Class Identifier

java.lang.Object
  extended by koala.dynamicjava.tree.Identifier
All Implemented Interfaces:
IdentifierToken, SourceInfo.Wrapper

public class Identifier
extends java.lang.Object
implements IdentifierToken

A stand-alone IdentifierToken.


Constructor Summary
Identifier(java.lang.String im)
          Creates a new token
Identifier(java.lang.String im, SourceInfo si)
          Creates a new token
 
Method Summary
 SourceInfo getSourceInfo()
           
 java.lang.String image()
          Returns the representation of the identifier
 java.lang.String toString()
          Implementation of toString for use in unit testing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Identifier

public Identifier(java.lang.String im)
Creates a new token

Parameters:
im - the image

Identifier

public Identifier(java.lang.String im,
                  SourceInfo si)
Creates a new token

Parameters:
im - the image
Method Detail

image

public java.lang.String image()
Returns the representation of the identifier

Specified by:
image in interface IdentifierToken

getSourceInfo

public SourceInfo getSourceInfo()
Specified by:
getSourceInfo in interface IdentifierToken
Specified by:
getSourceInfo in interface SourceInfo.Wrapper

toString

public java.lang.String toString()
Implementation of toString for use in unit testing

Overrides:
toString in class java.lang.Object