Package net.officefloor.compile.classes
Interface OfficeFloorJavaCompiler.MethodWriterContext
- Enclosing class:
- OfficeFloorJavaCompiler
public static interface OfficeFloorJavaCompiler.MethodWriterContext
Context for the
OfficeFloorJavaCompiler.MethodWriterContext.-
Method Summary
Modifier and TypeMethodDescriptionClass<?>Obtains theClassof the interface being implemented.Obtains theMethodbeing implemented.Obtains the source to re-useOfficeFloorJavaCompilerhelper methods.voidsetReturnWrapClass(String className) Specifies the return wrapClass.voidsetReturnWrapClass(OfficeFloorJavaCompiler.JavaSource javaSource) Specifies the return wrapClass.voidWrites custom source implementation.voidWrites custom source line implementation.
-
Method Details
-
getInterface
Class<?> getInterface()Obtains theClassof the interface being implemented.- Returns:
Classof the interface being implemented.
-
getMethod
Method getMethod()Obtains theMethodbeing implemented.- Returns:
Methodbeing implemented.
-
setReturnWrapClass
Specifies the return wrap
Class.This results in implementation of the form:
return new <className>(<default delegation>);- Parameters:
className- WrapClass.
-
setReturnWrapClass
Specifies the return wrapClass.- Parameters:
javaSource-OfficeFloorJavaCompiler.JavaSource.- See Also:
-
write
Writes custom source implementation.- Parameters:
source- Source for custom implementation.
-
writeln
Writes custom source line implementation.- Parameters:
source- Source line for custom implementation.
-
getSource
Appendable getSource()Obtains the source to re-useOfficeFloorJavaCompilerhelper methods.- Returns:
- Source to re-use
OfficeFloorJavaCompilerhelper methods.
-