RecordVarExprent () { VarExprent copy = (VarExprent)super.copy(); RecordVarExprent newRoot = new RecordVarExprent(copy); for (RecordVarExprent component : components) { newRoot.addComponent(component.copy()); } return newRoot; }