public class StaticPropertyStyle extends JavaBeanPropertyStyle
StaticPropertyStyle sits at the same conceptual level as, say, JavaBeanPropertyStyle or GroovyPropertyStyle. It allows Metawidget Inspectors to be repurposed to inspect static classes, as opposed to objects. This allows the same Inspector to be used in either runtime or static scenarios. For example JpaInspector can be used to inspect JPA annotations on classes for either UIMetawidget or StaticUIMetawidget.
JavaBeanPropertyStyle.FieldProperty, JavaBeanPropertyStyle.JavaBeanProperty
mLog
Constructor and Description |
---|
StaticPropertyStyle() |
StaticPropertyStyle(JavaBeanPropertyStyleConfig config) |
Modifier and Type | Method and Description |
---|---|
ValueAndDeclaredType |
traverse(Object toTraverse,
String type,
boolean onlyToParent,
String... names)
Traverses the given Class heirarchy using properties of the given names.
|
getPrivateField, inspectProperties, isGetter, isSetter, lookupFields, lookupGetters, lookupSetters
getProperties, getUncachedTraits
cacheTraits, clearCache, getCachedTraits, getTraits, isExcluded, isExcludedBaseType, isExcludedName, isExcludedReturnType
public StaticPropertyStyle()
public StaticPropertyStyle(JavaBeanPropertyStyleConfig config)
public ValueAndDeclaredType traverse(Object toTraverse, String type, boolean onlyToParent, String... names)
traverse
in interface PropertyStyle
traverse
in class BasePropertyStyle
Copyright © 2015. All Rights Reserved.