Interface ExpressionNode
- All Known Implementing Classes:
ExpressionBranch, ExpressionDirective, ExpressionFunction
public interface ExpressionNode
A single node in a compiled expression.
- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(ExpressionStack stack, ExpressionVariableContext context) Executes this node.booleanChecks if this node is collapsable.voidwriteBytes(OutputStream out) Write value as bytes (for digest later).
-
Method Details
-
isCollapsable
boolean isCollapsable()Checks if this node is collapsable.- Returns:
- true if so, false if not.
-
execute
Executes this node.- Parameters:
stack- the stack to use.context- the context for added variables.- Returns:
- if false, stop expression calculation, else if true, continue.
-
writeBytes
Write value as bytes (for digest later).- Parameters:
out- the output stream.- Throws:
IOException- on a write error.
-