org.iternine.jeppetto.enhance
Class TemplateHelper
java.lang.Object
org.iternine.jeppetto.enhance.TemplateHelper
public class TemplateHelper
- extends Object
TemplateHelper
public TemplateHelper(javassist.ClassPool pool)
cls
public TemplateHelper cls(String name)
clsName
public String clsName()
ext
public TemplateHelper ext(javassist.CtClass superClass)
throws javassist.CannotCompileException
- Throws:
javassist.CannotCompileException
impl
public TemplateHelper impl(String interfaceName)
throws javassist.NotFoundException
- Throws:
javassist.NotFoundException
field
public String field(String code)
throws javassist.CannotCompileException
- Throws:
javassist.CannotCompileException
ctor
public String ctor(String code)
throws javassist.CannotCompileException
- Throws:
javassist.CannotCompileException
method
public String method(String code)
throws javassist.CannotCompileException
- Throws:
javassist.CannotCompileException
asSetter
public String asSetter(javassist.CtMethod getter)
keyFor
public String keyFor(String getterName)
returnTypeOf
public Class<?> returnTypeOf(javassist.CtMethod method)
throws ClassNotFoundException,
NoSuchMethodException
- Throws:
ClassNotFoundException
NoSuchMethodException
returnTypeParamsOf
public Class<?>[] returnTypeParamsOf(javassist.CtMethod method)
throws ClassNotFoundException,
NoSuchMethodException
- Throws:
ClassNotFoundException
NoSuchMethodException
wrapperNameFor
public String wrapperNameFor(Class<?> cls)
compile
public javassist.CtClass compile()
createConversionMethodBody
public String createConversionMethodBody(Class<?> returnType)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.