Class APGeneratorDestinaton
java.lang.Object
org.openjdk.jmh.generators.annotations.APGeneratorDestinaton
- All Implemented Interfaces:
GeneratorDestination
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAPGeneratorDestinaton
(RoundEnvironment roundEnv, ProcessingEnvironment processingEnv) -
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String resourcePath) Returns the stream for the given resource.Returns the Writer for the given class.newResource
(String resourcePath) Returns the stream for the given resource.void
printError
(String message) Print the error.void
printError
(String message, Throwable throwable) Print the error.void
printError
(String message, MetadataInfo element) Print the error.void
Print the informative message.void
printWarning
(String message) Print the warning.void
printWarning
(String message, Throwable throwable) Print the warning.void
printWarning
(String message, MetadataInfo element) Print the warning.
-
Field Details
-
processingEnv
-
-
Constructor Details
-
APGeneratorDestinaton
-
-
Method Details
-
newResource
Description copied from interface:GeneratorDestination
Returns the stream for the given resource. Callers are responsible for closing streams.- Specified by:
newResource
in interfaceGeneratorDestination
- Parameters:
resourcePath
- resource path- Returns:
- output stream to write the resource to.
- Throws:
IOException
- if something wacked happens
-
getResource
Description copied from interface:GeneratorDestination
Returns the stream for the given resource. Callers are responsible for closing streams.- Specified by:
getResource
in interfaceGeneratorDestination
- Parameters:
resourcePath
- resource path- Returns:
- stream usable to read the resource
- Throws:
IOException
- if something wacked happens
-
newClass
Description copied from interface:GeneratorDestination
Returns the Writer for the given class. Callers are responsible for closing Writers.- Specified by:
newClass
in interfaceGeneratorDestination
- Parameters:
className
- class nameoriginatingClassName
- class name causing the creation of this class- Returns:
- writer usable to write the resource
- Throws:
IOException
- if something wacked happens
-
printError
Description copied from interface:GeneratorDestination
Print the error. Calling this method should not terminate anything.- Specified by:
printError
in interfaceGeneratorDestination
- Parameters:
message
- error.
-
printError
Description copied from interface:GeneratorDestination
Print the error. Calling this method should not terminate anything.- Specified by:
printError
in interfaceGeneratorDestination
- Parameters:
message
- error.element
- metadata element, to which this error is tailored
-
printError
Description copied from interface:GeneratorDestination
Print the error. Calling this method should not terminate anything.- Specified by:
printError
in interfaceGeneratorDestination
- Parameters:
message
- error.throwable
- exception causing the error
-
printWarning
Description copied from interface:GeneratorDestination
Print the warning. Calling this method should not terminate anything.- Specified by:
printWarning
in interfaceGeneratorDestination
- Parameters:
message
- warning.
-
printWarning
Description copied from interface:GeneratorDestination
Print the warning. Calling this method should not terminate anything.- Specified by:
printWarning
in interfaceGeneratorDestination
- Parameters:
message
- warning.element
- metadata element, to which this error is tailored
-
printWarning
Description copied from interface:GeneratorDestination
Print the warning. Calling this method should not terminate anything.- Specified by:
printWarning
in interfaceGeneratorDestination
- Parameters:
message
- warning.throwable
- exception causing the error
-
printNote
Description copied from interface:GeneratorDestination
Print the informative message. Calling this method should not terminate anything.- Specified by:
printNote
in interfaceGeneratorDestination
- Parameters:
message
- message.
-