Interface OfficeFloorJavaCompiler.MethodWriterContext

Enclosing class:
OfficeFloorJavaCompiler

public static interface OfficeFloorJavaCompiler.MethodWriterContext
  • Method Details

    • getInterface

      Class<?> getInterface()
      Obtains the Class of the interface being implemented.
      Returns:
      Class of the interface being implemented.
    • getMethod

      Method getMethod()
      Obtains the Method being implemented.
      Returns:
      Method being implemented.
    • setReturnWrapClass

      void setReturnWrapClass(String className)

      Specifies the return wrap Class.

      This results in implementation of the form:

      return new <className>(<default delegation>);

      Parameters:
      className - Wrap Class.
    • setReturnWrapClass

      void setReturnWrapClass(OfficeFloorJavaCompiler.JavaSource javaSource)
      Specifies the return wrap Class.
      Parameters:
      javaSource - OfficeFloorJavaCompiler.JavaSource.
      See Also:
    • write

      void write(String source)
      Writes custom source implementation.
      Parameters:
      source - Source for custom implementation.
    • writeln

      void writeln(String source)
      Writes custom source line implementation.
      Parameters:
      source - Source line for custom implementation.
    • getSource

      Appendable getSource()
      Obtains the source to re-use OfficeFloorJavaCompiler helper methods.
      Returns:
      Source to re-use OfficeFloorJavaCompiler helper methods.