public interface GeneratorDestination
The exit point for BenchmarkGenerator.
| 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.
|
Writer newResource(String resourcePath) throws IOException
resourcePath - resource pathIOException - if something wacked happensReader getResource(String resourcePath) throws IOException
resourcePath - resource pathIOException - if something wacked happensWriter newClass(String className) throws IOException
className - class nameIOException - if something wacked happensvoid printError(String message)
message - error.void printError(String message, MetadataInfo element)
message - error.element - metadata element, to which this error is tailoredvoid printError(String message, Throwable throwable)
message - error.throwable - exception causing the errorvoid printWarning(String message)
message - warning.void printWarning(String message, MetadataInfo element)
message - warning.element - metadata element, to which this error is tailoredvoid printWarning(String message, Throwable throwable)
message - warning.throwable - exception causing the errorvoid printNote(String message)
message - message.Copyright © 2012-2015 Oracle. All Rights Reserved.