anl.aida.query
Class ASTNumber
java.lang.Object
anl.aida.query.SimpleNode
anl.aida.query.ASTNumber
- All Implemented Interfaces:
- Node
public class ASTNumber
- extends SimpleNode
Field Summary |
private double |
val
|
Method Summary |
double |
evaluate(Frame source)
Evaluates this Node and returns a double as a result. |
java.lang.String |
getCacheKey()
|
double |
getVal()
|
void |
setFloat(java.lang.String s)
|
void |
setInteger(java.lang.String s,
int radix)
|
private void |
throwError(java.lang.String message)
|
private void |
throwError(java.lang.String message,
java.lang.Exception ex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
val
private double val
ASTNumber
public ASTNumber(int id)
ASTNumber
public ASTNumber(Parser p,
int id)
throwError
private void throwError(java.lang.String message)
throwError
private void throwError(java.lang.String message,
java.lang.Exception ex)
getVal
public double getVal()
setInteger
public void setInteger(java.lang.String s,
int radix)
setFloat
public void setFloat(java.lang.String s)
evaluate
public double evaluate(Frame source)
- Description copied from class:
SimpleNode
- Evaluates this Node and returns a double as a result.
Default implementation throws an UnsupportedOperationException.
- Specified by:
evaluate
in interface Node
- Overrides:
evaluate
in class SimpleNode
- Parameters:
source
- the source of any data needed during evaluation
- Returns:
- the result of the evaulation.
getCacheKey
public java.lang.String getCacheKey()
- Specified by:
getCacheKey
in interface Node
- Overrides:
getCacheKey
in class SimpleNode