Class DefaultBeanIntrospector
- java.lang.Object
- 
- jadex.commons.transformation.traverser.DefaultBeanIntrospector
 
- 
- All Implemented Interfaces:
- IBeanIntrospector
 
 public class DefaultBeanIntrospector extends java.lang.Object implements IBeanIntrospector Introspector for Java beans. It uses the reflection to build up a map with property infos (name, read/write method, etc.)
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classDefaultBeanIntrospector.BeanClassInfoInfos about a bean class.
 - 
Field SummaryFields Modifier and Type Field Description protected LRU<WeakObject<java.lang.Class<?>>,java.util.Map<Tuple2<java.lang.Boolean,java.lang.Boolean>,DefaultBeanIntrospector.BeanClassInfo>>beaninfosThe cache for saving time for multiple lookups.
 - 
Constructor SummaryConstructors Constructor Description DefaultBeanIntrospector()Create a new introspector.DefaultBeanIntrospector(int lrusize)Create a new introspector.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanPropertycreateBeanProperty(java.lang.String name, java.lang.Class<?> type, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.Class<?> settertype, java.lang.reflect.Type generictype)Creates a bean property based on getter/setter.protected BeanPropertycreateBeanProperty(java.lang.String name, java.lang.reflect.Field field, boolean anonclass)Creates a bean property based on a field.protected DefaultBeanIntrospector.BeanClassInfogetBeanClassInfo(java.lang.Class<?> clazz, boolean includemethods, boolean includefields)java.lang.invoke.MethodHandlegetBeanConstructor(java.lang.Class<?> clazz, boolean includemethods, boolean includefields)Get the bean constructor for a specific clazz.java.util.Map<java.lang.String,BeanProperty>getBeanProperties(java.lang.Class<?> clazz, boolean includemethods, boolean includefields)Get the bean properties for a specific clazz.
 
- 
- 
- 
Field Detail- 
beaninfosprotected LRU<WeakObject<java.lang.Class<?>>,java.util.Map<Tuple2<java.lang.Boolean,java.lang.Boolean>,DefaultBeanIntrospector.BeanClassInfo>> beaninfos The cache for saving time for multiple lookups.
 
- 
 - 
Method Detail- 
getBeanConstructorpublic java.lang.invoke.MethodHandle getBeanConstructor(java.lang.Class<?> clazz, boolean includemethods, boolean includefields)Get the bean constructor for a specific clazz.- Specified by:
- getBeanConstructorin interface- IBeanIntrospector
 
 - 
getBeanPropertiespublic java.util.Map<java.lang.String,BeanProperty> getBeanProperties(java.lang.Class<?> clazz, boolean includemethods, boolean includefields) Get the bean properties for a specific clazz.- Specified by:
- getBeanPropertiesin interface- IBeanIntrospector
- Parameters:
- clazz- The class to inspect.
- Returns:
- The map of properties (name -> BeanProperty).
 
 - 
getBeanClassInfoprotected DefaultBeanIntrospector.BeanClassInfo getBeanClassInfo(java.lang.Class<?> clazz, boolean includemethods, boolean includefields) 
 - 
createBeanPropertyprotected BeanProperty createBeanProperty(java.lang.String name, java.lang.Class<?> type, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.Class<?> settertype, java.lang.reflect.Type generictype) Creates a bean property based on getter/setter.- Parameters:
- name- Property name
- type- Property type.
- getter- The getter method.
- setter- The setter method.
- settertype- The type used by the setter.
- Returns:
- The bean property.
 
 - 
createBeanPropertyprotected BeanProperty createBeanProperty(java.lang.String name, java.lang.reflect.Field field, boolean anonclass) Creates a bean property based on a field.- Parameters:
- name- Property name
- field- The field.
- Returns:
- The bean property.
 
 
- 
 
-