@Test public void getElseExpr() throws Exception { TernaryExpr te = makeTernary(); assertEquals(elseVar, te.getElseExpr()); assertEquals(elseVar, te.getChild(2)); }
public Expr getElseExpr() { return elseExpr; }
TernaryExpr extends Expr { public Expr getElseExpr() { return elseExpr; } }
TernaryExpr extends Expr { public Expr getElseExpr() { return elseExpr; } TernaryExpr(Expr test, Expr thenExpr, Expr elseExpr); }
TernaryExpr extends Expr { public Expr getElseExpr() { return elseExpr; } TernaryExpr(Expr test, Expr thenExpr, Expr elseExpr); Expr getTest(); Expr getThenExpr(); Expr getElseExpr(); @Override void accept(IAstVisitor visitor); @Override TernaryExpr clone(); @Override boolean hasChild(IAstNode candidateChild); @Override Expr getChild(int index); @Override void setChild(int index, Expr expr); @Override int getNumChildren(); }
TernaryExpr extends Expr { public Expr getElseExpr() { return elseExpr; } TernaryExpr(Expr test, Expr thenExpr, Expr elseExpr); Expr getTest(); Expr getThenExpr(); Expr getElseExpr(); @Override void accept(IAstVisitor visitor); @Override TernaryExpr clone(); @Override boolean hasChild(IAstNode candidateChild); @Override Expr getChild(int index); @Override void setChild(int index, Expr expr); @Override int getNumChildren();  }