public class CompileTest extends XAbstractProcessor
XAbstractProcessor.Assert<T>, XAbstractProcessor.LogCommonUtil.ActionE0<E extends Exception>, CommonUtil.FuncE0<R,E extends Exception>elements, filer, isDebug, messager, typesprocessingEnv| 构造器和说明 |
|---|
CompileTest() |
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
getError() |
Set<String> |
getSupportedAnnotationTypes()
If the processor class is annotated with
SupportedAnnotation or
SupportedAnnotationTypes, return an unmodifiable set with the same
set of strings as the annotation. |
SourceVersion |
getSupportedSourceVersion() |
boolean |
processActual(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
Processes a set of annotation types on type elements originating from the
prior round and returns whether or not these annotation types are claimed
by this processor.
|
void |
setMethod(org.junit.runners.model.FrameworkMethod method) |
assertDo, assertDo, assertNonNull, assertThat, assertThat, assertThat, assertType, debug, error, handleAssert, init, process, warninggetCompletions, getSupportedOptions, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitensureFileSystem, getStackTraceString, throwAsUncheck, uncatch, uncatch, uncheck, uncheckpublic void setMethod(org.junit.runners.model.FrameworkMethod method)
public boolean processActual(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
XAbstractProcessortrue is returned, the annotation types are claimed and subsequent
processors will not be asked to process them; if false is returned,
the annotation types are unclaimed and subsequent processors may be asked
to process them. A processor may always return the same boolean value or
may vary the result based on chosen criteria.
The input set will be empty if the processor supports "*" and the root elements have no annotations. A Processor must gracefully handle an empty set of annotations.
processActual 在类中 XAbstractProcessorannotations - the annotation types requested to be processedroundEnv - environment for information about the current and prior
roundXAbstractProcessor.assertThat(boolean),
XAbstractProcessor.handleAssert(Runnable)public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion 在接口中 ProcessorgetSupportedSourceVersion 在类中 AbstractProcessorpublic Set<String> getSupportedAnnotationTypes()
XAbstractProcessorSupportedAnnotation or
SupportedAnnotationTypes, return an unmodifiable set with the same
set of strings as the annotation. If the class is not so annotated, an
empty set is returned.getSupportedAnnotationTypes 在接口中 ProcessorgetSupportedAnnotationTypes 在类中 XAbstractProcessorpublic Throwable getError()
Copyright © 2018. All rights reserved.