Class BoundVariable
java.lang.Object
com.singularsys.jep.Variable
com.singularsys.jep.misc.boundvariable.BoundVariable
- All Implemented Interfaces:
Serializable
A variable bound to an object outside Jep.
- Since:
- Jep 3.5
- Author:
- Richard Morris
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the value of the variable.booleanIs the value of this variable valid?protected booleansetValueRaw(Object object) Sets the value of the variable.Methods inherited from class com.singularsys.jep.Variable
copyPropertiesFrom, getHook, getName, hookKeys, isConstant, removeHook, setHook, setIsConstant, setValidValue, setValue, toString
-
Field Details
-
vb
-
-
Constructor Details
-
BoundVariable
Create a BoundVariable- Parameters:
name- name of the variablevb- binding for the variable
-
-
Method Details
-
getValue
Gets the value of the variable.- Overrides:
getValuein classVariable- Returns:
- the value of the object. Returns null if there is problem accessing the variable.
- Throws:
RuntimeException- if error in accessing the object
-
setValueRaw
Sets the value of the variable.- Overrides:
setValueRawin classVariable- Parameters:
object-- Returns:
- false if there is a problem accessing the variable
-
hasValidValue
public boolean hasValidValue()Description copied from class:VariableIs the value of this variable valid?- Overrides:
hasValidValuein classVariable- Returns:
- whether the value is valid
-