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 |
Jasic.Value |
evaluate()
Expression classes implement this to evaluate the expression and
return the value. |
evaluate
Jasic.Value evaluate()
- Expression classes implement this to evaluate the expression and
return the value.
- Returns:
- The value of the calculated expression.
Copyright © 2012. All Rights Reserved.