类 GeneralForStatement

所有已实现的接口:
Serializable, IGoto

public class GeneralForStatement extends Statement implements IGoto
for(var a=0;a <10;i++){}elsefor{}
作者:
xiandafu
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • GeneralForStatement

      public GeneralForStatement(VarAssignSeqStatement varAssignSeq, Expression[] expInit, Expression condition, Expression[] expUpdate, Statement forPart, Statement elseforPart, GrammarToken token)
      构造方法 示例 for(expInit;condtion;expUpdate){}
      参数:
      varAssignSeq - 变量委派序列
      expInit - 初始化的表达式
      condition - 条件
      expUpdate - 更新后的表达式
      forPart - for部分
      elseforPart - elsefor部分
      token - 语法单词
  • 方法详细资料

    • execute

      public void execute(Context ctx)
      指定者:
      execute 在类中 Statement
    • hasGoto

      public final boolean hasGoto()
      从接口复制的说明: IGoto
      是否存在 goto 关键字
      指定者:
      hasGoto 在接口中 IGoto
      返回:
      true表示存在,false表示不存在
    • setGoto

      public final void setGoto(boolean occour)
      从接口复制的说明: IGoto
      设置是否存在 goto 关键字
      指定者:
      setGoto 在接口中 IGoto
      参数:
      occour - 是否存在 goto 关键字