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.JavaBeanPropertymLog| 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, lookupSettersgetProperties, getUncachedTraitscacheTraits, clearCache, getCachedTraits, getTraits, isExcluded, isExcludedBaseType, isExcludedName, isExcludedReturnTypepublic StaticPropertyStyle()
public StaticPropertyStyle(JavaBeanPropertyStyleConfig config)
public ValueAndDeclaredType traverse(Object toTraverse, String type, boolean onlyToParent, String... names)
traverse in interface PropertyStyletraverse in class BasePropertyStyleCopyright © 2015. All Rights Reserved.