|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.Literal
public class Literal
A literal value in a formula.
| Constructor Summary | |
|---|---|
Literal(Value value)
Creates a new literal. |
|
| Method Summary | |
|---|---|
Object |
accept(ExpressionVisitor visitor)
Accepts to visit the given expression visitor. |
Value |
evaluate()
Evaluates the expression and returns the result. |
Value |
getValue()
Returns the value of the literal. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Literal(Value value)
value - the value of literal| Method Detail |
|---|
public Value evaluate()
Expression
evaluate in interface Expressionpublic Value getValue()
public Object accept(ExpressionVisitor visitor)
Expression
accept in interface Expressionvisitor - the visitorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||