Class APGeneratorDestinaton
- java.lang.Object
-
- org.openjdk.jmh.generators.annotations.APGeneratorDestinaton
-
- All Implemented Interfaces:
GeneratorDestination
public class APGeneratorDestinaton extends java.lang.Object implements GeneratorDestination
-
-
Field Summary
Fields Modifier and Type Field Description private javax.annotation.processing.ProcessingEnvironmentprocessingEnv
-
Constructor Summary
Constructors Constructor Description APGeneratorDestinaton(javax.annotation.processing.RoundEnvironment roundEnv, javax.annotation.processing.ProcessingEnvironment processingEnv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetResource(java.lang.String resourcePath)Returns the stream for the given resource.java.io.WriternewClass(java.lang.String className, java.lang.String originatingClassName)Returns the Writer for the given class.java.io.OutputStreamnewResource(java.lang.String resourcePath)Returns the stream for the given resource.voidprintError(java.lang.String message)Print the error.voidprintError(java.lang.String message, java.lang.Throwable throwable)Print the error.voidprintError(java.lang.String message, MetadataInfo element)Print the error.voidprintNote(java.lang.String message)Print the informative message.voidprintWarning(java.lang.String message)Print the warning.voidprintWarning(java.lang.String message, java.lang.Throwable throwable)Print the warning.voidprintWarning(java.lang.String message, MetadataInfo element)Print the warning.
-
-
-
Method Detail
-
newResource
public java.io.OutputStream newResource(java.lang.String resourcePath) throws java.io.IOExceptionDescription copied from interface:GeneratorDestinationReturns the stream for the given resource. Callers are responsible for closing streams.- Specified by:
newResourcein interfaceGeneratorDestination- Parameters:
resourcePath- resource path- Returns:
- output stream to write the resource to.
- Throws:
java.io.IOException- if something wacked happens
-
getResource
public java.io.InputStream getResource(java.lang.String resourcePath) throws java.io.IOExceptionDescription copied from interface:GeneratorDestinationReturns the stream for the given resource. Callers are responsible for closing streams.- Specified by:
getResourcein interfaceGeneratorDestination- Parameters:
resourcePath- resource path- Returns:
- stream usable to read the resource
- Throws:
java.io.IOException- if something wacked happens
-
newClass
public java.io.Writer newClass(java.lang.String className, java.lang.String originatingClassName) throws java.io.IOExceptionDescription copied from interface:GeneratorDestinationReturns the Writer for the given class. Callers are responsible for closing Writers.- Specified by:
newClassin interfaceGeneratorDestination- Parameters:
className- class nameoriginatingClassName- class name causing the creation of this class- Returns:
- writer usable to write the resource
- Throws:
java.io.IOException- if something wacked happens
-
printError
public void printError(java.lang.String message)
Description copied from interface:GeneratorDestinationPrint the error. Calling this method should not terminate anything.- Specified by:
printErrorin interfaceGeneratorDestination- Parameters:
message- error.
-
printError
public void printError(java.lang.String message, MetadataInfo element)Description copied from interface:GeneratorDestinationPrint the error. Calling this method should not terminate anything.- Specified by:
printErrorin interfaceGeneratorDestination- Parameters:
message- error.element- metadata element, to which this error is tailored
-
printError
public void printError(java.lang.String message, java.lang.Throwable throwable)Description copied from interface:GeneratorDestinationPrint the error. Calling this method should not terminate anything.- Specified by:
printErrorin interfaceGeneratorDestination- Parameters:
message- error.throwable- exception causing the error
-
printWarning
public void printWarning(java.lang.String message)
Description copied from interface:GeneratorDestinationPrint the warning. Calling this method should not terminate anything.- Specified by:
printWarningin interfaceGeneratorDestination- Parameters:
message- warning.
-
printWarning
public void printWarning(java.lang.String message, MetadataInfo element)Description copied from interface:GeneratorDestinationPrint the warning. Calling this method should not terminate anything.- Specified by:
printWarningin interfaceGeneratorDestination- Parameters:
message- warning.element- metadata element, to which this error is tailored
-
printWarning
public void printWarning(java.lang.String message, java.lang.Throwable throwable)Description copied from interface:GeneratorDestinationPrint the warning. Calling this method should not terminate anything.- Specified by:
printWarningin interfaceGeneratorDestination- Parameters:
message- warning.throwable- exception causing the error
-
printNote
public void printNote(java.lang.String message)
Description copied from interface:GeneratorDestinationPrint the informative message. Calling this method should not terminate anything.- Specified by:
printNotein interfaceGeneratorDestination- Parameters:
message- message.
-
-