se.bjurr.jmib.model.ClassModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-method-invocation-builder Show documentation
Show all versions of java-method-invocation-builder Show documentation
Generates builders for invoking methods on instantiated objects
package se.bjurr.jmib.model;
import java.util.List;
public class ClassModel {
private final String classFullyQualified;
private final List methods;
private final String packageName;
public ClassModel(String packageName, String classFullyQualified, List methods) {
this.packageName = packageName;
this.classFullyQualified = classFullyQualified;
this.methods = methods;
}
public String getClassFullyQualifiedName() {
return this.classFullyQualified;
}
public String getClassName() {
String[] parts = this.classFullyQualified.split("\\.");
return parts[parts.length - 1];
}
public List getMethods() {
return this.methods;
}
public String getPackageName() {
return this.packageName;
}
@Override
public String toString() {
return "ClassModel [classFullyQualified="
+ this.classFullyQualified
+ ", methods="
+ this.methods
+ ", packageName="
+ this.packageName
+ "]";
}
}