public class Expression<T extends javolution.lang.ValueType> extends Object implements IVisitableNode<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
Expression.Op |
| Constructor and Description |
|---|
Expression(Expression.Op opCode,
INode<T>... operands)
This constructor will generate an expression by inserting
|
Expression(Expression.Op opCode,
T... operands) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(INodeVisitor visitor) |
static <T extends javolution.lang.ValueType> |
Add(T... values) |
static <T extends javolution.lang.ValueType> |
Concat(T... values) |
static <T extends javolution.lang.ValueType> |
Divide(T... values) |
T |
evaluate() |
static <T extends javolution.lang.ValueType> |
Multiply(T... values) |
static <T extends javolution.lang.ValueType> |
Subtract(T... values) |
String |
toString() |
public Expression(Expression.Op opCode, INode<T>... operands)
opCode - which determines which operation the expression needs to
evaluate andoperands - which determines against which operands the operation needs to
be evaluatedpublic Expression(Expression.Op opCode, T... operands)
public static <T extends javolution.lang.ValueType> Expression<T> Add(T... values)
public static <T extends javolution.lang.ValueType> Expression<T> Multiply(T... values)
public static <T extends javolution.lang.ValueType> Expression<T> Subtract(T... values)
public static <T extends javolution.lang.ValueType> Expression<T> Divide(T... values)
public static <T extends javolution.lang.ValueType> Expression<T> Concat(T... values)
public T evaluate()
public void accept(INodeVisitor visitor)
accept in interface IVisitableNode<T extends javolution.lang.ValueType>Copyright © 2012–2013 SignaLab. All rights reserved.