Package org.springframework.boot.config.processor.util

Examples of org.springframework.boot.config.processor.util.ModelHelper


  private final EntityModel entityModel;

  public PropertyResolver(ProcessingEnvironment env, EntityModel entityModel) {
    this.env = env;
    this.modelHelper = new ModelHelper(env);
    this.entityModel = entityModel;
    this.harvester = new PropertyHarvester(this.modelHelper);
    this.unresolvedReadMethods = new HashMap<String, ExecutableElement>();
    this.unresolvedWriteMethods = new HashMap<String, ExecutableElement>();
    this.unresolvedFields = new HashMap<String, VariableElement>();
View Full Code Here


  private final Set<? extends Element> allConditionElements;

  Processor(ProcessingEnvironment env, RoundEnvironment roundEnv) {
    this.env = env;
    this.modelHelper = new ModelHelper(env);
    this.msg = env.getMessager();
    this.allConfigurationPropertiesElements =
        roundEnv.getElementsAnnotatedWith(getConfigurationPropertiesType());
    this.allConditionElements =
        roundEnv.getElementsAnnotatedWith(getConditionalOnPropertyType());
View Full Code Here

    }
    return null;
  }

  private String cleanType(ProcessingEnvironment env, TypeMirror typeMirror) {
    ModelHelper modelHelper = new ModelHelper(env);
    Class<?> wrapper = ModelUtils.getWrapper(typeMirror.getKind());
    if (wrapper != null) {
      return wrapper.getName();
    }
    if (modelHelper.isMapType(typeMirror)) {
      TypeMirror mapType = modelHelper.getMapType(typeMirror);
      return (mapType != null ? mapType.toString() : null);
    }
    if (modelHelper.isCollectionType(typeMirror)) {
      TypeMirror collectionType = modelHelper.getCollectionType(typeMirror);
      return (collectionType != null ? collectionType.toString() : null);
    }
    return typeMirror.toString();
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.config.processor.util.ModelHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.