@Override
protected void generateLines(Method method) {
if (!(method instanceof IterMethod)) {
throw new IllegalArgumentException();
}
IterMethod m = (IterMethod) method;
if (m == FIELDS) {
generateFields();
} else if (m == CONSTRUCTOR) {
generateConstructor();
} else if (m == MOVE_NEXT) {