當前位置: 首頁>>代碼示例>>Java>>正文


Java ProcessingEnvironment.getMessager方法代碼示例

本文整理匯總了Java中javax.annotation.processing.ProcessingEnvironment.getMessager方法的典型用法代碼示例。如果您正苦於以下問題:Java ProcessingEnvironment.getMessager方法的具體用法?Java ProcessingEnvironment.getMessager怎麽用?Java ProcessingEnvironment.getMessager使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.annotation.processing.ProcessingEnvironment的用法示例。


在下文中一共展示了ProcessingEnvironment.getMessager方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
@SuppressWarnings("PMD.AvoidSynchronizedAtMethodLevel")
public synchronized void init(final ProcessingEnvironment env) {
    super.init(env);
    filer = env.getFiler();
    elementUtils = env.getElementUtils();
    messager = env.getMessager();
}
 
開發者ID:allure-framework,項目名稱:allure-java,代碼行數:9,代碼來源:DescriptionsProcessor.java

示例2: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnvironment) {
    super.init(processingEnvironment);

    elementUtils = processingEnvironment.getElementUtils();
    typeUtils = processingEnvironment.getTypeUtils();
    messager = processingEnvironment.getMessager();
    filer = processingEnvironment.getFiler();
}
 
開發者ID:srym,項目名稱:vulture,代碼行數:10,代碼來源:VultureProcessor.java

示例3: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);

    this.elementUtils = processingEnv.getElementUtils();
    this.messager = processingEnv.getMessager();
}
 
開發者ID:codegen-io,項目名稱:jso-builder,代碼行數:8,代碼來源:JSOBuilderProcessor.java

示例4: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
  super.init(processingEnv);

  mFiler = processingEnv.getFiler();
  mElements = processingEnv.getElementUtils();
  mMessager = processingEnv.getMessager();
}
 
開發者ID:qq565999484,項目名稱:RNLearn_Project1,代碼行數:9,代碼來源:ReactModuleSpecProcessor.java

示例5: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
	super.init(processingEnv);

	this.messager = processingEnv.getMessager();
	this.filer = processingEnv.getFiler();
}
 
開發者ID:commsen,項目名稱:EM,代碼行數:8,代碼來源:ActivatorAnnotationProcessor.java

示例6: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);
    annotatedEntityMap = new HashMap<>();
    annotatedEntityNameMap = new HashMap<>();
    annotatedComponentList = new ArrayList<>();
    messager = processingEnv.getMessager();
}
 
開發者ID:skydoves,項目名稱:PreferenceRoom,代碼行數:9,代碼來源:PreferenceRoomProcessor.java

示例7: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnvironment) {
    super.init(processingEnvironment);
    filer = processingEnvironment.getFiler();
    messager = processingEnvironment.getMessager();

    intentGenerator = new IntentGenerator(processingEnvironment);
    spGenerator = new SharePreferenceGenerator(processingEnvironment);
    targetGenerator = new TargetGenerator(processingEnvironment);
}
 
開發者ID:foreveruseful,項目名稱:smartkey,代碼行數:11,代碼來源:Apt.java

示例8: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);
    typeUtils = processingEnv.getTypeUtils();
    elementUtils = processingEnv.getElementUtils();
    filer = processingEnv.getFiler();
    messager = processingEnv.getMessager();
}
 
開發者ID:jacklongway,項目名稱:FactoryAnnotation,代碼行數:9,代碼來源:FactoryProcessor.java

示例9: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);

    typeUtils = processingEnv.getTypeUtils();
    elementUtils = processingEnv.getElementUtils();
    filer = processingEnv.getFiler();
    messager = processingEnv.getMessager();
}
 
開發者ID:stechy1,項目名稱:drd,代碼行數:10,代碼來源:ManagerProcessor.java

示例10: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);

    filer = processingEnv.getFiler();
    elements = processingEnv.getElementUtils();
    messager = processingEnv.getMessager();

    processorHelper = ProcessorHelper.create(filer, elements, messager);
}
 
開發者ID:freelifer,項目名稱:limitjson,代碼行數:11,代碼來源:JSONProcessor.java

示例11: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment env) {
  super.init(env);
  Types typeUtils = env.getTypeUtils();
  Elements elementUtils = env.getElementUtils();
  Filer filer = env.getFiler();
  messager = env.getMessager();
  ErrorMessages errorMessages = ErrorMessages.builder()
      .cycleInDefinitionSources("Cycle in @Configuration class @Imports {0}")
      .cycleInObjectDefinitions("Cycle in spring bean dependencies {0}")
      .duplicateObjectDefinitions("Duplicate in spring beans {0}")
      .nonLiteralStaticMemberVariables("Non literal static member variables can break class instantiation and leak state")
      .knownDamagingClass("Known damaging class import (contains non-literal static member variables)")
      .missingBeanDefinitions("Missing bean definitions for spring beans {0},"
         + " create definitions or list them in @Verified'''s expected field")
      .missingRelevantAnnotations("Missing @Verified or @Configuration on classes {0}")
      .unmatchedTypes("Unmatched types {0}")
      .duplicatedMatchingDependencies("Duplicated matching dependencies {0}")
      .duplicatedMatchingDefinitions("Duplicated matching definitions {0}")
      .noMatchingDefinition("No matching definition {0}")
      .unusedExpected("Expected bean name is unnecessary {0}")
      .couldNotStore("Could not store incremental build file for {0}")
      .couldNotRead("Could not read incremental build file for {0}")
      .dependencyShaMismatch("Sha256 mismatch of dependency model of prior analyzed @Configuration model")
      .rootNodeImported("@Verfied(root=true) may not be @Imported by other @Verified @Configuration classes: {0}")
      .build();
  definitionAggregator = new AptParsingContext(errorMessages, filer, elementUtils, typeUtils);
}
 
開發者ID:salesforce,項目名稱:AptSpring,代碼行數:29,代碼來源:VerifiedSpringConfiguration.java

示例12: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment pe) {
    super.init(pe);
    moduleName = pe.getOptions().get(Const.OPTION_MODULE);
    elementsUtils = pe.getElementUtils();
    filer = pe.getFiler();
    messager = pe.getMessager();
    typesUtils = pe.getTypeUtils();

    logger = new RouterLogger(messager);
}
 
開發者ID:qkcoder,項目名稱:Assembler,代碼行數:12,代碼來源:RouterCompiler.java

示例13: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
    super.init(processingEnv);
    messager = processingEnv.getMessager();
    elementUtils = processingEnv.getElementUtils();
}
 
開發者ID:jutao,項目名稱:GankReader,代碼行數:7,代碼來源:OnceClickProcessor.java

示例14: ErrorReporter

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
ErrorReporter(ProcessingEnvironment processingEnv) {
    this.messager = processingEnv.getMessager();
}
 
開發者ID:ccheptea,項目名稱:auto-value-node,代碼行數:4,代碼來源:ErrorReporter.java

示例15: init

import javax.annotation.processing.ProcessingEnvironment; //導入方法依賴的package包/類
@Override
public synchronized void init(final ProcessingEnvironment pProcessingEnvironment) {
    super.init(pProcessingEnvironment);
    mMessager = pProcessingEnvironment.getMessager();
    mFiler = pProcessingEnvironment.getFiler();
}
 
開發者ID:RoRoche,項目名稱:AnnotationProcessorStarter,代碼行數:7,代碼來源:MyProcessor.java


注:本文中的javax.annotation.processing.ProcessingEnvironment.getMessager方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。