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

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

public class Variable
extends java.lang.Object
implements Expression

A constant in telemetry language. Since telemetry language is dynamically typed language (type information can only be determined at run time), there is no type information associated with variable.

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

Constructor Summary
Variable(java.lang.String name)
          Constructs this instance.
 
Method Summary
 boolean equals(java.lang.Object another)
          Tests for equality of two instances.
 java.lang.String getName()
          Gets the name of this variable.
 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

Variable

public Variable(java.lang.String name)
Constructs this instance.

Parameters:
name - The name of this variable.
Method Detail

getName

public java.lang.String getName()
Gets the name of this variable.

Returns:
The variable name.

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.