All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.bjurr.jmib.model.ClassMethodParameter Maven / Gradle / Ivy

There is a newer version: 1.4
Show newest version
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 + "]";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy