Class JavaClassBackendCompiler
java.lang.Object
org.apache.sling.scripting.sightly.java.compiler.JavaClassBackendCompiler
- All Implemented Interfaces:
BackendCompiler
BackendCompiler
that generates a Java class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvided the class information, this method will build the source code for the generated Java class.void
handle
(CommandStream stream) Process a stream of commands
-
Constructor Details
-
JavaClassBackendCompiler
public JavaClassBackendCompiler() -
JavaClassBackendCompiler
-
-
Method Details
-
handle
Description copied from interface:BackendCompiler
Process a stream of commands- Specified by:
handle
in interfaceBackendCompiler
- Parameters:
stream
- the stream of commands
-
build
Provided the class information, this method will build the source code for the generated Java class.- Parameters:
classInfo
- the class information- Returns:
- the generated Java class' source code
-