public class Variable extends AbstractValue
name, value
root
Constructor and Description |
---|
Variable(Breakpoint breakpoint,
java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval()
Evaluate the expression.
|
java.lang.String |
getExpressionName()
Return the variable name.
|
java.lang.Object |
getValue()
Return the value.
|
Variable |
getVariable(java.lang.String varName)
Return the value of the variable.
|
java.util.Map<java.lang.String,Variable> |
getVariables()
Return the Map of variables.
|
getExpression, getName, setName
getRoot, setRoot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRoot, getVariable, getVariables, hasVariable, hasVariable
public Variable(Breakpoint breakpoint, java.lang.String name)
breakpoint
- the breakpointname
- the variable namepublic java.lang.Object getValue()
Value
getValue
in interface Value
getValue
in class AbstractValue
public java.lang.Object eval() throws java.lang.ArithmeticException
Expression
eval
in interface Expression
eval
in class AbstractValue
java.lang.ArithmeticException
public java.lang.String getExpressionName()
public java.util.Map<java.lang.String,Variable> getVariables()
public Variable getVariable(java.lang.String varName)
varName
- the variable nameCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence