Class WhileStatement

All Implemented Interfaces:
UserDataStore, IFreezable, INode, Cloneable

public class WhileStatement extends Statement
  • Field Details

    • WHILE_KEYWORD_ROLE

      public static final TokenRole WHILE_KEYWORD_ROLE
  • Constructor Details

    • WhileStatement

      public WhileStatement(int offset)
    • WhileStatement

      public WhileStatement(Expression condition)
  • Method Details

    • getEmbeddedStatement

      public final Statement getEmbeddedStatement()
    • setEmbeddedStatement

      public final void setEmbeddedStatement(Statement value)
    • getCondition

      public final Expression getCondition()
    • setCondition

      public final void setCondition(Expression value)
    • getWhileToken

      public final JavaTokenNode getWhileToken()
    • getLeftParenthesisToken

      public final JavaTokenNode getLeftParenthesisToken()
    • getRightParenthesisToken

      public final JavaTokenNode getRightParenthesisToken()
    • acceptVisitor

      public <T, R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
      Specified by:
      acceptVisitor in class AstNode
    • matches

      public boolean matches(INode other, Match match)
      Specified by:
      matches in interface INode
      Specified by:
      matches in class AstNode