@Test public void getNumChildren() throws Exception { assertEquals(3, makeTernary().getNumChildren()); }
@Override public int getNumChildren() { return 3; }
TernaryExpr extends Expr { @Override public int getNumChildren() { return 3; } }
TernaryExpr extends Expr { @Override public int getNumChildren() { return 3; } TernaryExpr(Expr test, Expr thenExpr, Expr elseExpr); }
TernaryExpr extends Expr { @Override public int getNumChildren() { return 3; } 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 { @Override public int getNumChildren() { return 3; } 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();  }