edu.isi.pegasus.planner.parser.tokens
Class Identifier

java.lang.Object
  extended by edu.isi.pegasus.planner.parser.tokens.Identifier
All Implemented Interfaces:
Token

public class Identifier
extends Object
implements Token

Class to capture reserved words.

Version:
$Revision: 2151 $
Author:
Jens Voeckler, Karan Vahi, Gaurang Mehta

Field Summary
private  String m_value
          This instance variable captures the token value for the reserved word.
 
Constructor Summary
Identifier(String tokenValue)
          Initializes an instance of an identifier.
 
Method Summary
 String getValue()
          Obtains the token value of a given reserved word token.
 String toString()
          Returns the textual description of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_value

private String m_value
This instance variable captures the token value for the reserved word.

Constructor Detail

Identifier

public Identifier(String tokenValue)
Initializes an instance of an identifier.

Parameters:
tokenValue - is the identifier to remember.
Method Detail

getValue

public String getValue()
Obtains the token value of a given reserved word token.

Returns:
the token value.

toString

public String toString()
Returns the textual description of the object.

Overrides:
toString in class Object
Returns:
the description as String.


Copyright © 2011 The University of Southern California. All Rights Reserved.