org.msgpack.template.builder
Class BeansBuildContext

java.lang.Object
  extended by org.msgpack.template.builder.BuildContext<BeansFieldEntry>
      extended by org.msgpack.template.builder.BeansBuildContext

public class BeansBuildContext
extends BuildContext<BeansFieldEntry>


Field Summary
protected  BeansFieldEntry[] entries
           
protected  Class<?> origClass
           
protected  String origName
           
protected  Template<?>[] templates
           
 
Fields inherited from class org.msgpack.template.builder.BuildContext
director, stringBuilder, tmplCtClass, tmplName
 
Constructor Summary
BeansBuildContext(JavassistTemplateBuilder director)
           
 
Method Summary
protected  void buildConstructor()
           
protected  Template buildInstance(Class<?> c)
           
protected  void buildMethodInit()
           
protected  String buildReadMethodBody()
           
 Template buildTemplate(Class<?> targetClass, BeansFieldEntry[] entries, Template[] templates)
           
protected  String buildWriteMethodBody()
           
 Template loadTemplate(Class<?> targetClass)
           
protected  void setSuperClass()
           
 void writeTemplate(Class<?> targetClass, BeansFieldEntry[] entries, Template[] templates, String directoryName)
           
 
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
 

Field Detail

entries

protected BeansFieldEntry[] entries

origClass

protected Class<?> origClass

origName

protected String origName

templates

protected Template<?>[] templates
Constructor Detail

BeansBuildContext

public BeansBuildContext(JavassistTemplateBuilder director)
Method Detail

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.