MemberLookupExpr extends Expr { public Expr getStructure() { return structure; } MemberLookupExpr(Expr structure, String member); Expr getStructure(); void setStructure(Expr structure); String getMember(); void setMember(String member); @Override void accept(IAstVisitor visitor); @Override MemberLookupExpr clone(); @Override boolean hasChild(IAstNode candidateChild); @Override Expr getChild(int index); @Override void setChild(int index, Expr expr); @Override int getNumChildren();  }
@Test public void getStructure() throws Exception { VariableIdentifierExpr v = new VariableIdentifierExpr("v"); MemberLookupExpr mle = new MemberLookupExpr( v, "foo"); assertEquals(v, mle.getStructure()); }