Class StatementExpression

java.lang.Object
team.unnamed.mocha.parser.ast.StatementExpression
All Implemented Interfaces:
Expression

public final class StatementExpression extends Object implements 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
  • Constructor Details

  • Method Details

    • op

      @NotNull public @NotNull StatementExpression.Op op()
      Gets the operation/type of this statement.
      Returns:
      The statement operation/type.
      Since:
      3.0.0
    • visit

      public <R> R visit(@NotNull @NotNull ExpressionVisitor<R> visitor)
      Description copied from interface: Expression
      Visits this expression with the given visitor.
      Specified by:
      visit in interface Expression
      Type Parameters:
      R - The visit result return type
      Parameters:
      visitor - The expression visitor
      Returns:
      The visit result