| Constructor and Description |
|---|
Bean(Object instance) |
Bean(Object instance,
BeanNamingStrategy naming) |
| Modifier and Type | Method and Description |
|---|---|
static Bean |
bean(Object instance) |
static Bean |
bean(Object instance,
BeanNamingStrategy naming) |
static BeanProperty |
beanProperty(Object instance,
String name)
Static factory method for constructing a
BeanProperty for the property name on the given instance. |
static BeanProperty |
beanProperty(Object instance,
String name,
BeanNamingStrategy naming)
Static factory method for constructing a
BeanProperty for the property name on the given instance. |
String |
camelName()
Return the name of the type using camel notation.
|
String |
canonicalName()
Return the full name of the type.
|
Class<?> |
getType()
Return the
Class for this type |
boolean |
is(Class<?> otherType)
Return
true if this type is assignable from the other type. |
boolean |
isArray()
Return
true if this type is an array |
boolean |
isEnum()
Return
true if this type is a Java enumeration |
boolean |
isPrimitive()
Return
true if this type is a primitive type |
String |
packageName()
Return the package name for this type.
|
String |
simpleName()
Return the name of the type without any package information.
|
Class<?>[] |
superTypes()
Return this type's super types as an array of
Class instances |
Type |
type() |
Class<?>[] |
typeHierachy()
Return this type and it's super types as an array of
Class instances |
apply, apply, dump, dump, dump, find, findAny, get, get, hasProperty, hasProperty, hasProperty, isPropertyType, isPropertyType, propertyList, propertyMap, propertyNamed, propertyType, propertyType, propertyValue, propertyValue, propertyValue, propertyValue, setNamingStrategy, setProperty, setProperty, visitpublic Bean(Object instance)
public Bean(Object instance, BeanNamingStrategy naming)
public static Bean bean(Object instance, BeanNamingStrategy naming)
public static final BeanProperty beanProperty(Object instance, String name)
BeanProperty for the property name on the given instance.public static final BeanProperty beanProperty(Object instance, String name, BeanNamingStrategy naming)
BeanProperty for the property name on the given instance.public String camelName()
Typedmy.package.MyObject would have the camelName myObject.public Type type()
public String simpleName()
Typedmy.package.MyObject would have the name MyObject.simpleName in interface Typedpublic String canonicalName()
Typedmy.package.MyObject would have the name my.package.MyObject.canonicalName in interface Typedpublic Class<?>[] typeHierachy()
TypedClass instancestypeHierachy in interface Typedpublic Class<?>[] superTypes()
TypedClass instancessuperTypes in interface Typedpublic boolean is(Class<?> otherType)
Typedtrue if this type is assignable from the other type.public boolean isArray()
Typedtrue if this type is an arraypublic String packageName()
Typedmy.package.MyObject would have the name my.packagepackageName in interface Typedpublic boolean isPrimitive()
Typedtrue if this type is a primitive typeisPrimitive in interface Typedpublic boolean isEnum()
Typedtrue if this type is a Java enumerationCopyright © 2015. All rights reserved.