public class Mapper<S>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private SimpleCompiler |
compiler |
private boolean |
debugEnabled |
private TypeInspector |
inspector |
private java.lang.Class<S> |
structInterface |
Constructor and Description |
---|
Mapper(java.lang.Class<S> structInterface,
boolean debugEnabled) |
Modifier and Type | Method and Description |
---|---|
private void |
checkCompileFailures(java.lang.String templateFile,
CompilationResult result) |
private void |
debugLogSource(java.lang.String source) |
int |
getSizeInBytes() |
private java.lang.Class<?>[] |
getTypes(java.lang.Object... args) |
private <I> I |
instantiateImplementation(java.lang.Class<?>[] constructorParameterTypes,
java.lang.String name,
CompilationResult result,
java.lang.Object[] args) |
<I> I |
newFlyweight(java.lang.Class<I> implementationParent,
java.lang.String templateFileName,
java.lang.Object... args) |
<I> I |
newFlyweight(java.lang.Class<I> implementationParent,
java.lang.String templateFileName,
Template template,
java.lang.Object... args) |
private final boolean debugEnabled
private final TypeInspector inspector
private final java.lang.Class<S> structInterface
private final SimpleCompiler compiler
public Mapper(java.lang.Class<S> structInterface, boolean debugEnabled)
public int getSizeInBytes()
public <I> I newFlyweight(java.lang.Class<I> implementationParent, java.lang.String templateFileName, java.lang.Object... args)
public <I> I newFlyweight(java.lang.Class<I> implementationParent, java.lang.String templateFileName, Template template, java.lang.Object... args)
private void debugLogSource(java.lang.String source)
private <I> I instantiateImplementation(java.lang.Class<?>[] constructorParameterTypes, java.lang.String name, CompilationResult result, java.lang.Object[] args)
private void checkCompileFailures(java.lang.String templateFile, CompilationResult result)
private java.lang.Class<?>[] getTypes(java.lang.Object... args)