Class IfStatement

java.lang.Object
com.google.api.generator.engine.ast.IfStatement
All Implemented Interfaces:
AstNode, Statement

public abstract class IfStatement extends Object implements Statement
  • Constructor Details

    • IfStatement

      public IfStatement()
  • Method Details

    • conditionExpr

      public abstract Expr conditionExpr()
    • body

      public abstract com.google.common.collect.ImmutableList<Statement> body()
    • elseIfs

      public abstract com.google.common.collect.ImmutableMap<Expr,List<Statement>> elseIfs()
    • elseBody

      public abstract com.google.common.collect.ImmutableList<Statement> elseBody()
    • accept

      public void accept(AstNodeVisitor visitor)
      Description copied from interface: AstNode
      Writes the syntatically-correct Java code representation of this node.
      Specified by:
      accept in interface AstNode
      Specified by:
      accept in interface Statement
    • builder

      public static IfStatement.Builder builder()