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 AbstractFilerMessager
createAnnotationBasedFiler
(ProcessingEnvironment processingEnv, Messager msgr) Create an annotation based filer abstraction.createClassFile
(CharSequence name, Element... originatingElements) static AbstractFilerMessager
createDirectFiler
(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) void
Log a debug message.void
Log a debug message.void
Log an error message.getResource
(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName) void
Log an info message.void
Log a warning.void
Log 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:
createSourceFile
in interfaceFiler
- Throws:
IOException
-
createClassFile
public JavaFileObject createClassFile(CharSequence name, Element... originatingElements) throws IOException - Specified by:
createClassFile
in interfaceFiler
- Throws:
IOException
-
createResource
public FileObject createResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName, Element... originatingElements) throws IOException - Specified by:
createResource
in interfaceFiler
- Throws:
IOException
-
getResource
public FileObject getResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName) throws IOException - Specified by:
getResource
in interfaceFiler
- Throws:
IOException
-
debug
Description copied from interface:Messager
Log a debug message. -
debug
Description copied from interface:Messager
Log a debug message. -
log
Description copied from interface:Messager
Log an info message. -
warn
Description copied from interface:Messager
Log a warning. -
warn
Description copied from interface:Messager
Log a warning message. -
error
Description copied from interface:Messager
Log an error message.
-