org.eclipse.jdt.internal.eval
Class GlobalVariable

java.lang.Object
  extended by org.eclipse.jdt.internal.eval.GlobalVariable

public class GlobalVariable
extends java.lang.Object

A global variable is a variable defined for an evaluation context and that persists accross evaluations.


Constructor Summary
GlobalVariable(char[] typeName, char[] name, char[] initializer)
          Creates a new global variable with the given type name, name and initializer.
 
Method Summary
 char[] getInitializer()
          Returns the initializer of this global variable.
 char[] getName()
          Returns the name of this global variable.
 char[] getTypeName()
          Returns the dot separated fully qualified name of the type of this global variable, or its simple representation if it is a primitive type (eg.
 java.lang.String toString()
          Returns a readable representation of the receiver.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalVariable

public GlobalVariable(char[] typeName,
                      char[] name,
                      char[] initializer)
Creates a new global variable with the given type name, name and initializer. initializer can be null if there is none.

Method Detail

getInitializer

public char[] getInitializer()
Returns the initializer of this global variable. The initializer is a variable initializer (ie. an expression or an array initializer) as defined in the Java Language Specifications.


getName

public char[] getName()
Returns the name of this global variable.


getTypeName

public char[] getTypeName()
Returns the dot separated fully qualified name of the type of this global variable, or its simple representation if it is a primitive type (eg. int, boolean, etc.)


toString

public java.lang.String toString()
Returns a readable representation of the receiver. This is for debugging purpose only.

Overrides:
toString in class java.lang.Object