Class ResourcecifyProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- io.sundr.resourcecify.internal.processor.ResourcecifyProcessor
-
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("io.sundr.resourcecify.annotations.Resourcecify") public class ResourcecifyProcessor extends AbstractProcessor
-
-
Field Summary
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description ResourcecifyProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcopy(FileObject source, FileObject target)Copy oneFileObjectinto an other.static PackageElementgetPackageElement(Element element)static StringgetPackageName(Element element)SourceVersiongetSupportedSourceVersion()booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment env)-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
-
-
-
Method Detail
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment env)
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
getPackageElement
public static PackageElement getPackageElement(Element element)
-
copy
public static void copy(FileObject source, FileObject target) throws IOException
Copy oneFileObjectinto an other.- Parameters:
source- The sourceFileObject.target- The targetFileObject.- Throws:
IOException
-
-