org.msgpack.template.builder
Class BeansBuildContext
java.lang.Object
org.msgpack.template.builder.BuildContext<BeansFieldEntry>
org.msgpack.template.builder.BeansBuildContext
public class BeansBuildContext
- extends BuildContext<BeansFieldEntry>
Methods inherited from class org.msgpack.template.builder.BuildContext |
build, buildClass, buildReadMethod, buildString, buildString, buildWriteMethod, createClass, getBuiltString, load, primitiveReadName, primitiveWriteName, reset, resetStringBuilder, saveClass, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entries
protected BeansFieldEntry[] entries
origClass
protected Class<?> origClass
origName
protected String origName
templates
protected Template<?>[] templates
BeansBuildContext
public BeansBuildContext(JavassistTemplateBuilder director)
buildTemplate
public Template buildTemplate(Class<?> targetClass,
BeansFieldEntry[] entries,
Template[] templates)
- Specified by:
buildTemplate
in class BuildContext<BeansFieldEntry>
setSuperClass
protected void setSuperClass()
throws javassist.CannotCompileException,
javassist.NotFoundException
- Specified by:
setSuperClass
in class BuildContext<BeansFieldEntry>
- Throws:
javassist.CannotCompileException
javassist.NotFoundException
buildConstructor
protected void buildConstructor()
throws javassist.CannotCompileException,
javassist.NotFoundException
- Specified by:
buildConstructor
in class BuildContext<BeansFieldEntry>
- Throws:
javassist.CannotCompileException
javassist.NotFoundException
buildInstance
protected Template buildInstance(Class<?> c)
throws NoSuchMethodException,
InstantiationException,
IllegalAccessException,
InvocationTargetException
- Specified by:
buildInstance
in class BuildContext<BeansFieldEntry>
- Throws:
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException
buildMethodInit
protected void buildMethodInit()
- Overrides:
buildMethodInit
in class BuildContext<BeansFieldEntry>
buildWriteMethodBody
protected String buildWriteMethodBody()
- Specified by:
buildWriteMethodBody
in class BuildContext<BeansFieldEntry>
buildReadMethodBody
protected String buildReadMethodBody()
- Specified by:
buildReadMethodBody
in class BuildContext<BeansFieldEntry>
writeTemplate
public void writeTemplate(Class<?> targetClass,
BeansFieldEntry[] entries,
Template[] templates,
String directoryName)
- Specified by:
writeTemplate
in class BuildContext<BeansFieldEntry>
loadTemplate
public Template loadTemplate(Class<?> targetClass)
- Specified by:
loadTemplate
in class BuildContext<BeansFieldEntry>
Copyright © 2011. All Rights Reserved.