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