Class JavaClassBackendCompiler

java.lang.Object
org.apache.sling.scripting.sightly.java.compiler.JavaClassBackendCompiler
All Implemented Interfaces:
BackendCompiler

public final class JavaClassBackendCompiler extends Object implements BackendCompiler
BackendCompiler that generates a Java class.
  • Constructor Details

    • JavaClassBackendCompiler

      public JavaClassBackendCompiler()
    • JavaClassBackendCompiler

      public JavaClassBackendCompiler(JavaImportsAnalyzer javaImportsAnalyzer)
  • Method Details

    • handle

      public void handle(CommandStream stream)
      Description copied from interface: BackendCompiler
      Process a stream of commands
      Specified by:
      handle in interface BackendCompiler
      Parameters:
      stream - the stream of commands
    • build

      public String build(ClassInfo classInfo)
      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