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

br.com.objectos.way.code.MethodInfoExecutableElementCoreBuilderPojo Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
package br.com.objectos.way.code;

import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;
import javax.annotation.Generated;

@Generated({
    "br.com.objectos.way.pojo.compiler.PojoCompiler",
    "br.com.objectos.way.pojo.plugin.SetPlugin",
    "br.com.objectos.way.pojo.plugin.StandardBuilderPropertyAction"
})
final class MethodInfoExecutableElementCoreBuilderPojo implements MethodInfoExecutableElementCoreBuilder, MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderTypeParameterInfoMap, MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderAccessInfo, MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderModifierInfoSet, MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderName {
  private TypeParameterInfoMap typeParameterInfoMap;

  private AccessInfo accessInfo;

  private Set modifierInfoSet;

  private String name;

  public MethodInfoExecutableElementCoreBuilderPojo() {
  }

  @Override
  public MethodInfoExecutableElementCore build() {
    return new MethodInfoExecutableElementCorePojo(this);
  }

  @Override
  public MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderTypeParameterInfoMap typeParameterInfoMap(TypeParameterInfoMap typeParameterInfoMap) {
    if (typeParameterInfoMap == null) {
      throw new NullPointerException();
    }
    this.typeParameterInfoMap = typeParameterInfoMap;
    return this;
  }

  TypeParameterInfoMap ___get___typeParameterInfoMap() {
    return typeParameterInfoMap;
  }

  @Override
  public MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderAccessInfo accessInfo(AccessInfo accessInfo) {
    if (accessInfo == null) {
      throw new NullPointerException();
    }
    this.accessInfo = accessInfo;
    return this;
  }

  AccessInfo ___get___accessInfo() {
    return accessInfo;
  }

  @Override
  public MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderModifierInfoSet modifierInfoSet(Set modifierInfoSet) {
    if (modifierInfoSet == null) {
      throw new NullPointerException();
    }
    this.modifierInfoSet = modifierInfoSet;
    return this;
  }

  Set ___get___modifierInfoSet() {
    return modifierInfoSet;
  }

  @Override
  public MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderModifierInfoSet modifierInfoSet(ModifierInfo... elements) {
    if (elements == null) {
      throw new NullPointerException();
    }
    Set modifierInfoSet = new LinkedHashSet<>(elements.length);
    for (int i = 0; i < elements.length; i++) {
      ModifierInfo e = elements[i];
      if (e == null) {
        throw new NullPointerException();
      }
      modifierInfoSet.add(e);
    }
    this.modifierInfoSet = Collections.unmodifiableSet(modifierInfoSet);
    return this;
  }

  @Override
  public MethodInfoExecutableElementCoreBuilder.MethodInfoExecutableElementCoreBuilderName name(String name) {
    if (name == null) {
      throw new NullPointerException();
    }
    this.name = name;
    return this;
  }

  String ___get___name() {
    return name;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy