Package net.officefloor.compile.classes
Interface OfficeFloorJavaCompiler.MethodWriterContext
-
- Enclosing class:
- OfficeFloorJavaCompiler
public static interface OfficeFloorJavaCompiler.MethodWriterContext
Context for theOfficeFloorJavaCompiler.MethodWriterContext
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>
getInterface()
Obtains theClass
of the interface being implemented.java.lang.reflect.Method
getMethod()
Obtains theMethod
being implemented.java.lang.Appendable
getSource()
Obtains the source to re-useOfficeFloorJavaCompiler
helper methods.void
setReturnWrapClass(java.lang.String className)
Specifies the return wrapClass
.void
setReturnWrapClass(OfficeFloorJavaCompiler.JavaSource javaSource)
Specifies the return wrapClass
.void
write(java.lang.String source)
Writes custom source implementation.void
writeln(java.lang.String source)
Writes custom source line implementation.
-
-
-
Method Detail
-
getInterface
java.lang.Class<?> getInterface()
Obtains theClass
of the interface being implemented.- Returns:
Class
of the interface being implemented.
-
getMethod
java.lang.reflect.Method getMethod()
Obtains theMethod
being implemented.- Returns:
Method
being 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-useOfficeFloorJavaCompiler
helper methods.- Returns:
- Source to re-use
OfficeFloorJavaCompiler
helper methods.
-
-