|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.formulae.ExpressionVariable
A variable is a named expression which can have its value changed by name-keyed access to it.
Field Summary | |
protected Object |
context
The context in which the variable is defined |
protected String |
name
The name by which the variable is known and referred to |
protected com.klg.jclass.util.formulae.Expression |
value
The value which the variable is currently assigned |
protected static HashMap |
variableMap
The variable map stores all named variables (disambiguated by context) |
Method Summary | |
Object |
clone()
Clone this variable; since variables are unique to a context, we return the variable itself. |
static com.klg.jclass.util.formulae.ExpressionVariable |
createVariable(Object context,
String name)
Create a variable Expression given a context and name |
boolean |
equals(Object obj)
Determine if this variable matches another |
com.klg.jclass.util.formulae.Result |
evaluate()
As an Expression, the evaluation of this variable is its stored value (or the evaluation of a stored Expression). |
com.klg.jclass.util.formulae.Expression |
getValue()
Retrieve the Expression which is stored by this Variable |
static com.klg.jclass.util.formulae.ExpressionVariable |
getVariable(Object context,
String name)
Retrieve a variable Expression given a context and name |
int |
hashCode()
Compute the hashcode for this variable based on the context and name |
void |
setValue(com.klg.jclass.util.formulae.Expression value)
Set the current value of a variable |
static com.klg.jclass.util.formulae.ExpressionVariable |
setVariable(Object context,
String name,
com.klg.jclass.util.formulae.Expression value)
Create or set a variable Expression given a context, name and value |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String name
protected Object context
protected com.klg.jclass.util.formulae.Expression value
protected static HashMap variableMap
Method Detail |
public static com.klg.jclass.util.formulae.ExpressionVariable createVariable(Object context, String name)
context
- The object in which context the name is uniquename
- The name of the variablepublic static com.klg.jclass.util.formulae.ExpressionVariable setVariable(Object context, String name, com.klg.jclass.util.formulae.Expression value)
context
- The object in which context the name is uniquename
- The name of the variablevalue
- The current value of the variablepublic static com.klg.jclass.util.formulae.ExpressionVariable getVariable(Object context, String name)
context
- The object in which context the name is uniquename
- The name of the variablepublic com.klg.jclass.util.formulae.Result evaluate()
evaluate
in interface Expression
public void setValue(com.klg.jclass.util.formulae.Expression value)
value
- The new value the variable will havepublic com.klg.jclass.util.formulae.Expression getValue()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- The object to test for equality
public Object clone()
clone
in interface Expression
clone
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |