本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例13: init
import javax.annotation.processing.ProcessingEnvironment; //导入方法依赖的package包/类
@Override
public synchronized void init(ProcessingEnvironment processingEnv) {
super.init(processingEnv);
messager = processingEnv.getMessager();
elementUtils = processingEnv.getElementUtils();
}
示例14: ErrorReporter
import javax.annotation.processing.ProcessingEnvironment; //导入方法依赖的package包/类
ErrorReporter(ProcessingEnvironment processingEnv) {
this.messager = processingEnv.getMessager();
}
示例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();
}