- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A container for created classes with a specific output strategy.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClassOutputandThen(ClassOutput next) Returns a class output that write the class bytes to this output as well as the given one.static ClassOutputfileWriter(Path basePath) Returns a class output for the given path.default voidAccept and write the class bytes.voidWrite a resource to the output.
-
Method Details
-
write
Accept and write the class bytes.- Parameters:
desc- the class descriptor (notnull)bytes- the class file bytes (notnull)
-
write
Write a resource to the output.- Parameters:
path- the resource relative path (notnull)bytes- the resource bytes (notnull)
-
andThen
Returns a class output that write the class bytes to this output as well as the given one.- Parameters:
next- the other class output to write to (must not benull)- Returns:
- a class output that write the class bytes to this output as well as the given one
-
fileWriter
Returns a class output for the given path.- Parameters:
basePath- the path into which class files should be stored (must not benull)- Returns:
- a class output for the given path
-