se.bjurr.jmib.model.ClassMethodParameter 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 com.google.common.base.Optional;
import javax.lang.model.type.TypeMirror;
public class ClassMethodParameter {
private final String defaultValue;
private final String name;
private final TypeMirror type;
public ClassMethodParameter(TypeMirror type, String name, String defaultValue) {
this.type = type;
this.name = name;
this.defaultValue = defaultValue;
}
public Optional getDefaultValue() {
return Optional.fromNullable(this.defaultValue);
}
public String getName() {
return this.name;
}
public TypeMirror getType() {
return this.type;
}
@Override
public String toString() {
return "ClassMethodParameter [name=" + this.name + ", type=" + this.type + "]";
}
}