Package org.openjdk.jmh.generators.core
Class FileSystemDestination
java.lang.Object
org.openjdk.jmh.generators.core.FileSystemDestination
- All Implemented Interfaces:
GeneratorDestination
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String resourcePath) Returns the stream for the given resource.booleanbooleanReturns the Writer for the given class.newResource(String resourcePath) Returns the stream for the given resource.voidprintError(String message) Print the error.voidprintError(String message, Throwable throwable) Print the error.voidprintError(String message, MetadataInfo element) Print the error.voidPrint the informative message.voidprintWarning(String message) Print the warning.voidprintWarning(String message, Throwable throwable) Print the warning.voidprintWarning(String message, MetadataInfo element) Print the warning.
-
Constructor Details
-
FileSystemDestination
-
-
Method Details
-
newResource
Description 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:
IOException- if something wacked happens
-
getResource
Description 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:
IOException- if something wacked happens
-
newClass
Description 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:
IOException- if something wacked happens
-
printError
Description copied from interface:GeneratorDestinationPrint the error. Calling this method should not terminate anything.- Specified by:
printErrorin interfaceGeneratorDestination- Parameters:
message- error.
-
printError
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
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
-
hasErrors
public boolean hasErrors() -
getErrors
-
printWarning
Description copied from interface:GeneratorDestinationPrint the warning. Calling this method should not terminate anything.- Specified by:
printWarningin interfaceGeneratorDestination- Parameters:
message- warning.
-
printWarning
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
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
-
hasWarnings
public boolean hasWarnings() -
getWarnings
-
printNote
Description copied from interface:GeneratorDestinationPrint the informative message. Calling this method should not terminate anything.- Specified by:
printNotein interfaceGeneratorDestination- Parameters:
message- message.
-