public class BeanBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.codehaus.jackson.mrbean.BeanBuilder.Property> |
_beanProperties |
protected Class<?> |
_implementedType
Abstract class or interface that the bean is created to extend or implement.
|
protected TypeFactory |
_typeFactory |
protected LinkedHashMap<String,Method> |
_unsupportedMethods |
Constructor and Description |
---|
BeanBuilder(DeserializationConfig config,
Class<?> implType) |
Modifier and Type | Method and Description |
---|---|
byte[] |
build(String className)
Method that generates byte code for class that implements abstract
types requested so far.
|
BeanBuilder |
implement(boolean failOnUnrecognized) |
protected Map<String,org.codehaus.jackson.mrbean.BeanBuilder.Property> _beanProperties
protected LinkedHashMap<String,Method> _unsupportedMethods
protected final Class<?> _implementedType
protected final TypeFactory _typeFactory
public BeanBuilder(DeserializationConfig config, Class<?> implType)
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 generate