Package team.unnamed.mocha.parser.ast
Class StatementExpression
java.lang.Object
team.unnamed.mocha.parser.ast.StatementExpression
- All Implemented Interfaces:
Expression
Statement expression implementation. Statement expressions
do not have children expressions, they just have a single
operation type.
Example statement expressions: break, continue
- Since:
- 3.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum containing all the possible operations/types of statement expressions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StatementExpression.Opop()Gets the operation/type of this statement.<R> Rvisit(@NotNull ExpressionVisitor<R> visitor) Visits this expression with the given visitor.
-
Constructor Details
-
StatementExpression
-
-
Method Details
-
op
Gets the operation/type of this statement.- Returns:
- The statement operation/type.
- Since:
- 3.0.0
-
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
-