public class BeanBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,POJOProperty> |
_beanProperties |
protected Class<?> |
_implementedType
Abstract class or interface that the bean is created to extend or implement.
|
protected com.fasterxml.jackson.databind.type.TypeFactory |
_typeFactory |
protected LinkedHashMap<String,Method> |
_unsupportedMethods |
Constructor and Description |
---|
BeanBuilder(Class<?> implType,
com.fasterxml.jackson.databind.type.TypeFactory tf) |
Modifier and Type | Method and Description |
---|---|
byte[] |
build(String className)
Method that generates byte code for class that implements abstract
types requested so far.
|
protected static void |
generateDefaultConstructor(org.objectweb.asm.ClassWriter cw,
String superName) |
BeanBuilder |
implement(boolean failOnUnrecognized) |
protected Map<String,POJOProperty> _beanProperties
protected LinkedHashMap<String,Method> _unsupportedMethods
protected final Class<?> _implementedType
protected final com.fasterxml.jackson.databind.type.TypeFactory _typeFactory
public BeanBuilder(Class<?> implType, com.fasterxml.jackson.databind.type.TypeFactory tf)
public BeanBuilder implement(boolean failOnUnrecognized)
failOnUnrecognized
- If true, and an unrecognized (non-getter, non-setter)
method is encountered, will throw IllegalArgumentException
; if false,
will implement bogus method that will throw UnsupportedOperationException
if called.public byte[] build(String className)
className
- Fully-qualified name of the class to generateprotected static void generateDefaultConstructor(org.objectweb.asm.ClassWriter cw, String superName)
Copyright © 2012–2013 FasterXML. All rights reserved.