/ 

io.vertx/ vertx-codegen/ 3.8.0/ io/vertx/codegen/ModelProvider.java

 

  • interface publicModelProvider
    • field final final publicCLASS: ModelProvider
      • initializer package-privateLambda implementing ModelProvider
    • field final final publicDATA_OBJECT: ModelProvider
      • initializer package-privateLambda implementing ModelProvider
    • field final final publicENUM: ModelProvider
      • initializer package-privateLambda implementing ModelProvider
    • abstract method publicgetModel(ProcessingEnvironment, TypeElement): Model
http://nexus.sonatype.org/oss-repository-hosting.html/vertx-parent/vertx-codegen: Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/ (Eclipse)
  • The Apache Software License, Version 2.0
  • Eclipse Public License - v 1.0
package io.vertx.codegen;

import io.vertx.codegen.annotations.DataObject;
import io.vertx.codegen.annotations.VertxGen;

import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.TypeElement;

public interface ModelProvider {

  ModelProvider CLASS = (env, elt) -> {
    if (elt.getAnnotation(VertxGen.class) != null && elt.getKind() != ElementKind.ENUM) {
      ClassModel model = new ClassModel(env, elt);
      return model;
    } else {
      return null;
    }
  };

  ModelProvider DATA_OBJECT = (env, elt) -> {
    if (elt.getAnnotation(DataObject.class) != null) {
      DataObjectModel model = new DataObjectModel(env, elt);
      return model;
    } else {
      return null;
    }
  };

  ModelProvider ENUM = (env, elt) -> {
    if (elt.getAnnotation(VertxGen.class) != null && elt.getKind() == ElementKind.ENUM) {
      EnumModel model = new EnumModel(env, elt);
      return model;
    } else {
      return null;
    }
  };

  Model getModel(ProcessingEnvironment env, TypeElement elt);

}


Missing a library or version you want to see? Open an issue!
Icon set and themes from IntelliJ Community