@SupportedAnnotationTypes(value={"ftbsc.lll.processor.annotations.Patch","ftbsc.lll.processor.annotations.BareInjector"})
public class LilleroProcessor
extends javax.annotation.processing.AbstractProcessor
Processor interface by extending AbstractProcessor.| Constructor and Description |
|---|
LilleroProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFakeMixinClass(java.lang.String fqn)
Generates a fake no-op Mixin to ensure that all the classes that need transformations
are registered to require them in Mixin environments.
|
ProcessorOptions |
getProcessorOptions()
Returns the
ProcessorOptions for this instance, creating the object if
it hasn't been already. |
java.util.Set<java.lang.String> |
getSupportedOptions()
Method overriding default implementation to manually pass supported options.
|
javax.lang.model.SourceVersion |
getSupportedSourceVersion()
Always returns the latest version since this should never break.
|
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
Where the actual processing happens.
|
public java.util.Set<java.lang.String> getSupportedOptions()
getSupportedOptions in interface javax.annotation.processing.ProcessorgetSupportedOptions in class javax.annotation.processing.AbstractProcessorSet of options supported by this processor.public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface javax.annotation.processing.ProcessorgetSupportedSourceVersion in class javax.annotation.processing.AbstractProcessorpublic ProcessorOptions getProcessorOptions()
ProcessorOptions for this instance, creating the object if
it hasn't been already.ProcessorOptions for this instancepublic boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
process in interface javax.annotation.processing.Processorprocess in class javax.annotation.processing.AbstractProcessorannotations - the annotation types requested to be processedroundEnv - environment for information about the current and prior roundisValidInjector(TypeElement)public void generateFakeMixinClass(java.lang.String fqn)
fqn - the fully-qualified name of the class