Class GlobalVariable
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.eval.GlobalVariable
A global variable is a variable defined for an evaluation context and that persists
accross evaluations.
-
Constructor Summary
ConstructorDescriptionGlobalVariable(char[] typeName, char[] name, char[] initializer)
Creates a new global variable with the given type name, name and initializer. -
Method Summary
Modifier and TypeMethodDescriptionchar[]
Returns the initializer of this global variable.char[]
getName()
Returns the name of this global variable.char[]
Returns the dot separated fully qualified name of the type of this global variable, or its simple representation if it is a primitive type (e.g. int, boolean, etc.)toString()
Returns a readable representation of the receiver.
-
Constructor Details
-
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 Details
-
getInitializer
public char[] getInitializer()Returns the initializer of this global variable. The initializer is a variable initializer (i.e. 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 (e.g. int, boolean, etc.) -
toString
Returns a readable representation of the receiver. This is for debugging purpose only.
-