public class APGeneratorDestinaton extends Object implements GeneratorDestination
| Constructor and Description |
|---|
APGeneratorDestinaton(RoundEnvironment roundEnv,
ProcessingEnvironment processingEnv) |
| Modifier and Type | Method and Description |
|---|---|
Reader |
getResource(String resourcePath)
Returns the Reader for the given resource.
|
Writer |
newClass(String className)
Returns the Writer for the given class.
|
Writer |
newResource(String resourcePath)
Returns the Writer for the given resource.
|
void |
printError(String message)
Print the error.
|
void |
printError(String message,
MetadataInfo element)
Print the error.
|
void |
printError(String message,
Throwable throwable)
Print the error.
|
void |
printNote(String message)
Print the informative message.
|
void |
printWarning(String message)
Print the warning.
|
void |
printWarning(String message,
MetadataInfo element)
Print the warning.
|
void |
printWarning(String message,
Throwable throwable)
Print the warning.
|
public APGeneratorDestinaton(RoundEnvironment roundEnv, ProcessingEnvironment processingEnv)
public Writer newResource(String resourcePath) throws IOException
GeneratorDestinationnewResource in interface GeneratorDestinationresourcePath - resource pathIOException - if something wacked happenspublic Reader getResource(String resourcePath) throws IOException
GeneratorDestinationgetResource in interface GeneratorDestinationresourcePath - resource pathIOException - if something wacked happenspublic Writer newClass(String className) throws IOException
GeneratorDestinationnewClass in interface GeneratorDestinationclassName - class nameIOException - if something wacked happenspublic void printError(String message)
GeneratorDestinationprintError in interface GeneratorDestinationmessage - error.public void printError(String message, MetadataInfo element)
GeneratorDestinationprintError in interface GeneratorDestinationmessage - error.element - metadata element, to which this error is tailoredpublic void printError(String message, Throwable throwable)
GeneratorDestinationprintError in interface GeneratorDestinationmessage - error.throwable - exception causing the errorpublic void printWarning(String message)
GeneratorDestinationprintWarning in interface GeneratorDestinationmessage - warning.public void printWarning(String message, MetadataInfo element)
GeneratorDestinationprintWarning in interface GeneratorDestinationmessage - warning.element - metadata element, to which this error is tailoredpublic void printWarning(String message, Throwable throwable)
GeneratorDestinationprintWarning in interface GeneratorDestinationmessage - warning.throwable - exception causing the errorpublic void printNote(String message)
GeneratorDestinationprintNote in interface GeneratorDestinationmessage - message.Copyright © 2025. All rights reserved.