Package net.sourceforge.plantuml.jasic
Interface Jasic.Expression
-
- All Known Subinterfaces:
Jasic.Value
- All Known Implementing Classes:
Jasic.NumberValue
,Jasic.OperatorExpression
,Jasic.StringValue
,Jasic.VariableExpression
- Enclosing class:
- Jasic
public static interface Jasic.Expression
Base interface for an expression. An expression is like a statement except that it also returns a value when executed. Expressions do not appear at the top level in Jasic programs, but are used in many statements. For example, the value printed by a "print" statement is an expression. Unlike statements, expressions can nest.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Jasic.Value
evaluate()
Expression classes implement this to evaluate the expression and return the value.
-
-
-
Method Detail
-
evaluate
Jasic.Value evaluate()
Expression classes implement this to evaluate the expression and return the value.- Returns:
- The value of the calculated expression.
-
-