de.upb.swt.mcie.parser.token
Class Id

java.lang.Object
  extended by de.upb.swt.mcie.parser.token.Token
      extended by de.upb.swt.mcie.parser.token.Id

public class Id
extends Token

Implements the token for an identifier.

Author:
Ekkart Kindler, kindler@upb.de

Field Summary
private  java.lang.String name
          The literal of this identifier.
 
Constructor Summary
Id(java.lang.String name)
          Constructs a token for the identifier with the provided name.
 
Method Summary
 java.lang.String getName()
          Returns the literal of the identifier.
 
Methods inherited from class de.upb.swt.mcie.parser.token.Token
setReference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The literal of this identifier.

Constructor Detail

Id

public Id(java.lang.String name)
Constructs a token for the identifier with the provided name.

Parameters:
name -
Method Detail

getName

public java.lang.String getName()
Returns the literal of the identifier.

Returns:
the literal of the identifier