org.hackystat.telemetry.analyzer.language.ast
Class StringConstant

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.language.ast.Constant
      extended by org.hackystat.telemetry.analyzer.language.ast.StringConstant
All Implemented Interfaces:
Expression

public class StringConstant
extends Constant

String constant in telemetry language.

Version:
$Id$
Author:
(Cedric) Qin ZHANG

Constructor Summary
StringConstant(java.lang.String value)
          Constructs this instance.
 
Method Summary
 boolean equals(java.lang.Object another)
          Tests for equality of two instances.
 java.lang.String getValue()
          Gets the string this constant represents.
 java.lang.String getValueString()
          Gets the string this constant represents.
 int hashCode()
          Gets the hash code for this instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringConstant

public StringConstant(java.lang.String value)
Constructs this instance.

Parameters:
value - The string value of this constant.
Method Detail

getValue

public java.lang.String getValue()
Gets the string this constant represents.

Returns:
The string value.

getValueString

public java.lang.String getValueString()
Gets the string this constant represents. The return value is the same as getValue() method.

Specified by:
getValueString in class Constant
Returns:
The string value.

equals

public boolean equals(java.lang.Object another)
Tests for equality of two instances.

Overrides:
equals in class java.lang.Object
Parameters:
another - The other object to be tested with this object.
Returns:
True if two instances are equal.

hashCode

public int hashCode()
Gets the hash code for this instance.

Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.