com.talk2object.plum.viewgeneration.classexpr.AppendableClassExpr Maven / Gradle / Ivy
package com.talk2object.plum.viewgeneration.classexpr;
import java.util.ArrayList;
import java.util.List;
public abstract class AppendableClassExpr implements ClassExpr {
List list = new ArrayList();
@Override
public ClassExpr append(ClassExpr expr) {
list.add(expr);
return this;
}
@Override
public List getClasses() {
List result = new ArrayList();
for (ClassExpr expr : list) {
result.addAll(expr.getClasses());
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy