Package team.unnamed.mocha.parser.ast
Class ExecutionScopeExpression
java.lang.Object
team.unnamed.mocha.parser.ast.ExecutionScopeExpression
- All Implemented Interfaces:
Expression
Execution scope expression implementation. Execution
scopes define a new scope and a new sequence of
expressions to evaluate.
Execution scope expression examples: { print('a'); print('b'); },
{ doThisFirst(); thenDoThis(); }, { v.x = v.x + 1; }
- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull List<Expression>Returns the expressions inside this execution scope, never nullinthashCode()toString()<R> Rvisit(@NotNull ExpressionVisitor<R> visitor) Visits this expression with the given visitor.
-
Constructor Details
-
ExecutionScopeExpression
-
-
Method Details
-
expressions
Returns the expressions inside this execution scope, never null -
visit
Description copied from interface:ExpressionVisits this expression with the given visitor.- Specified by:
visitin interfaceExpression- Type Parameters:
R- The visit result return type- Parameters:
visitor- The expression visitor- Returns:
- The visit result
-
toString
-
equals
-
hashCode
public int hashCode()
-