@Test(expected = IndexOutOfBoundsException.class) public void getChild() throws Exception { VariableIdentifierExpr x = new VariableIdentifierExpr("x"); x.getChild(0); }
@Override public Expr getChild(int index) { throw new IndexOutOfBoundsException("VariableIdentifierExpr has no children"); }
VariableIdentifierExpr extends Expr { @Override public Expr getChild(int index) { throw new IndexOutOfBoundsException("VariableIdentifierExpr has no children"); } }
VariableIdentifierExpr extends Expr { @Override public Expr getChild(int index) { throw new IndexOutOfBoundsException("VariableIdentifierExpr has no children"); } VariableIdentifierExpr(String name); }
VariableIdentifierExpr extends Expr { @Override public Expr getChild(int index) { throw new IndexOutOfBoundsException("VariableIdentifierExpr has no children"); } VariableIdentifierExpr(String name); String getName(); void setName(String name); @Override void accept(IAstVisitor visitor); @Override VariableIdentifierExpr clone(); @Override boolean hasChild(IAstNode child); @Override Expr getChild(int index); @Override void setChild(int index, Expr expr); @Override int getNumChildren(); }
VariableIdentifierExpr extends Expr { @Override public Expr getChild(int index) { throw new IndexOutOfBoundsException("VariableIdentifierExpr has no children"); } VariableIdentifierExpr(String name); String getName(); void setName(String name); @Override void accept(IAstVisitor visitor); @Override VariableIdentifierExpr clone(); @Override boolean hasChild(IAstNode child); @Override Expr getChild(int index); @Override void setChild(int index, Expr expr); @Override int getNumChildren();  }