java.lang.Object
io.helidon.inject.tools.AbstractFilerMessager
Used to abstract processor based filer from direct filer (the latter used via maven plugin and other tooling).
-
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractFilerMessagercreateAnnotationBasedFiler(ProcessingEnvironment processingEnv, Messager msgr) Create an annotation based filer abstraction.createClassFile(CharSequence name, Element... originatingElements) static AbstractFilerMessagercreateDirectFiler(io.helidon.inject.tools.CodeGenPaths paths, System.Logger logger) Create a direct filer, not from annotation processing.createResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName, Element... originatingElements) createSourceFile(CharSequence name, Element... originatingElements) voidLog a debug message.voidLog a debug message.voidLog an error message.getResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName) voidLog an info message.voidLog a warning.voidLog a warning message.
-
Method Details
-
createAnnotationBasedFiler
public static AbstractFilerMessager createAnnotationBasedFiler(ProcessingEnvironment processingEnv, Messager msgr) Create an annotation based filer abstraction.- Parameters:
processingEnv- the processing envmsgr- the messager and error handler- Returns:
- the filer facade
-
createDirectFiler
public static AbstractFilerMessager createDirectFiler(io.helidon.inject.tools.CodeGenPaths paths, System.Logger logger) Create a direct filer, not from annotation processing.- Parameters:
paths- the code pathslogger- the logger for messaging- Returns:
- the filer facade
-
createSourceFile
public JavaFileObject createSourceFile(CharSequence name, Element... originatingElements) throws IOException - Specified by:
createSourceFilein interfaceFiler- Throws:
IOException
-
createClassFile
public JavaFileObject createClassFile(CharSequence name, Element... originatingElements) throws IOException - Specified by:
createClassFilein interfaceFiler- Throws:
IOException
-
createResource
public FileObject createResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName, Element... originatingElements) throws IOException - Specified by:
createResourcein interfaceFiler- Throws:
IOException
-
getResource
public FileObject getResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName) throws IOException - Specified by:
getResourcein interfaceFiler- Throws:
IOException
-
debug
Description copied from interface:MessagerLog a debug message. -
debug
Description copied from interface:MessagerLog a debug message. -
log
Description copied from interface:MessagerLog an info message. -
warn
Description copied from interface:MessagerLog a warning. -
warn
Description copied from interface:MessagerLog a warning message. -
error
Description copied from interface:MessagerLog an error message.
-