Package net.officefloor.compile.classes
Interface OfficeFloorJavaCompiler.MethodWriterContext
-
- Enclosing class:
- OfficeFloorJavaCompiler
public static interface OfficeFloorJavaCompiler.MethodWriterContextContext for theOfficeFloorJavaCompiler.MethodWriterContext.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>getInterface()Obtains theClassof the interface being implemented.java.lang.reflect.MethodgetMethod()Obtains theMethodbeing implemented.java.lang.AppendablegetSource()Obtains the source to re-useOfficeFloorJavaCompilerhelper methods.voidsetReturnWrapClass(java.lang.String className)Specifies the return wrapClass.voidsetReturnWrapClass(OfficeFloorJavaCompiler.JavaSource javaSource)Specifies the return wrapClass.voidwrite(java.lang.String source)Writes custom source implementation.voidwriteln(java.lang.String source)Writes custom source line implementation.
-
-
-
Method Detail
-
getInterface
java.lang.Class<?> getInterface()
Obtains theClassof the interface being implemented.- Returns:
Classof the interface being implemented.
-
getMethod
java.lang.reflect.Method getMethod()
Obtains theMethodbeing implemented.- Returns:
Methodbeing implemented.
-
setReturnWrapClass
void setReturnWrapClass(java.lang.String className)
Specifies the return wrap
Class.This results in implementation of the form:
return new <className>(<default delegation>);- Parameters:
className- WrapClass.
-
setReturnWrapClass
void setReturnWrapClass(OfficeFloorJavaCompiler.JavaSource javaSource)
Specifies the return wrapClass.- Parameters:
javaSource-OfficeFloorJavaCompiler.JavaSource.- See Also:
setReturnWrapClass(String)
-
write
void write(java.lang.String source)
Writes custom source implementation.- Parameters:
source- Source for custom implementation.
-
writeln
void writeln(java.lang.String source)
Writes custom source line implementation.- Parameters:
source- Source line for custom implementation.
-
getSource
java.lang.Appendable getSource()
Obtains the source to re-useOfficeFloorJavaCompilerhelper methods.- Returns:
- Source to re-use
OfficeFloorJavaCompilerhelper methods.
-
-