Class BeanProperty
- java.lang.Object
- 
- jadex.commons.transformation.traverser.BeanProperty
 
- 
 public class BeanProperty extends java.lang.ObjectThis class is a struct for saving data about an inspected bean property.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.reflect.FieldfieldThe field.protected java.lang.reflect.TypegentypeThe generic type.protected java.lang.reflect.MethodgetterThe getter.protected java.lang.invoke.MethodHandlegetterhandleThe getter handle access.protected java.lang.StringnameThe name.protected booleanreadableReadable flagprotected java.lang.reflect.MethodsetterThe setter.protected java.lang.invoke.MethodHandlesetterhandleThe setter handle access.protected java.lang.Class<?>settertypeThe setter type.protected java.lang.invoke.MethodHandlestaticgetterhandleThe static getter handle access.protected java.lang.invoke.MethodHandlestaticsetterhandleThe static getter handle access.protected java.lang.Class<?>typeThe type.protected booleanwritableWritable flag
 - 
Constructor SummaryConstructors Constructor Description BeanProperty()Create a new bean property.BeanProperty(java.lang.String name, java.lang.Class<?> type, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.Class<?> settertype, boolean readable, boolean writable, java.lang.reflect.Type gentype)Create a new bean property.BeanProperty(java.lang.String name, java.lang.reflect.Field field)Create a new bean property.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.FieldgetField()Get the field.java.lang.reflect.TypegetGenericType()Get the gentype.java.lang.reflect.MethodgetGetter()Get the getter.java.lang.StringgetName()Get the name.java.lang.ObjectgetPropertyValue(java.lang.Object object)Retrieves the bean property value for the given object.java.lang.reflect.MethodgetSetter()Get the setter.java.lang.Class<?>getSetterType()Get the setter_type.java.lang.Class<?>getType()Get the type.booleanisReadable()Tests if the property is readable.booleanisWritable()Tests if the property is writable.voidsetField(java.lang.reflect.Field field)Set the field.voidsetGenericType(java.lang.reflect.Type gentype)Set the gentype.voidsetGetter(java.lang.reflect.Method getter)Set the getter.voidsetName(java.lang.String name)Set the name.voidsetPropertyValue(java.lang.Object object, java.lang.Object value)Sets the bean property value for the given object.voidsetSetter(java.lang.reflect.Method setter)Set the setter.voidsetSetterType(java.lang.Class<?> settertype)Set the setter type.voidsetType(java.lang.Class<?> type)Set the type.
 
- 
- 
- 
Field Detail- 
nameprotected java.lang.String name The name.
 - 
typeprotected java.lang.Class<?> type The type.
 - 
getterprotected java.lang.reflect.Method getter The getter.
 - 
getterhandleprotected java.lang.invoke.MethodHandle getterhandle The getter handle access.
 - 
staticgetterhandleprotected java.lang.invoke.MethodHandle staticgetterhandle The static getter handle access.
 - 
setterprotected java.lang.reflect.Method setter The setter.
 - 
setterhandleprotected java.lang.invoke.MethodHandle setterhandle The setter handle access.
 - 
staticsetterhandleprotected java.lang.invoke.MethodHandle staticsetterhandle The static getter handle access.
 - 
readableprotected boolean readable Readable flag
 - 
writableprotected boolean writable Writable flag
 - 
settertypeprotected java.lang.Class<?> settertype The setter type.
 - 
fieldprotected java.lang.reflect.Field field The field.
 - 
gentypeprotected java.lang.reflect.Type gentype The generic type.
 
- 
 - 
Constructor Detail- 
BeanPropertypublic BeanProperty() Create a new bean property.
 - 
BeanPropertypublic BeanProperty(java.lang.String name, java.lang.Class<?> type, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.Class<?> settertype, boolean readable, boolean writable, java.lang.reflect.Type gentype)Create a new bean property.
 - 
BeanPropertypublic BeanProperty(java.lang.String name, java.lang.reflect.Field field)Create a new bean property.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Get the name.- Returns:
- The name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name to set.
 
 - 
getTypepublic java.lang.Class<?> getType() Get the type.- Returns:
- The type.
 
 - 
setTypepublic void setType(java.lang.Class<?> type) Set the type.- Parameters:
- type- The type to set.
 
 - 
getGetterpublic java.lang.reflect.Method getGetter() Get the getter.- Returns:
- The getter.
 
 - 
setGetterpublic void setGetter(java.lang.reflect.Method getter) Set the getter.- Parameters:
- getter- The getter to set.
 
 - 
getSetterpublic java.lang.reflect.Method getSetter() Get the setter.- Returns:
- The setter.
 
 - 
setSetterpublic void setSetter(java.lang.reflect.Method setter) Set the setter.- Parameters:
- setter- The setter to set.
 
 - 
isWritablepublic boolean isWritable() Tests if the property is writable.- Returns:
- True, if the property is writable.
 
 - 
isReadablepublic boolean isReadable() Tests if the property is readable.- Returns:
- True, if the property is readable.
 
 - 
getSetterTypepublic java.lang.Class<?> getSetterType() Get the setter_type.- Returns:
- The setterttype.
 
 - 
setSetterTypepublic void setSetterType(java.lang.Class<?> settertype) Set the setter type.- Parameters:
- settertype- The setter type to set.
 
 - 
getFieldpublic java.lang.reflect.Field getField() Get the field.- Returns:
- The field.
 
 - 
setFieldpublic void setField(java.lang.reflect.Field field) Set the field.- Parameters:
- field- The field to set.
 
 - 
getGenericTypepublic java.lang.reflect.Type getGenericType() Get the gentype.- Returns:
- The gentype
 
 - 
setGenericTypepublic void setGenericType(java.lang.reflect.Type gentype) Set the gentype.- Parameters:
- gentype- The gentype to set
 
 - 
getPropertyValuepublic java.lang.Object getPropertyValue(java.lang.Object object) Retrieves the bean property value for the given object.- Parameters:
- object- The object containing the bean property.
- property- The name of the property.
- Returns:
- The value of the bean property.
 
 - 
setPropertyValuepublic void setPropertyValue(java.lang.Object object, java.lang.Object value)Sets the bean property value for the given object.- Parameters:
- object- The object containing the bean property.
- property- The name of the property.
- value- The new value.
 
 
- 
 
-