public class Reflection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INDEX_MARKS
"()" to signify a reflected indexed property.
|
static java.lang.String |
LEFT_INDEX_MARK
"(" to signify a reflected indexed property.
|
static java.lang.String |
RIGHT_INDEX_MARK
")" to signify a reflected indexed property.
|
Constructor and Description |
---|
Reflection() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
reflectFieldProperty(java.lang.Object object,
java.lang.String propertyname)
Normally called internally from reflectProperty.
|
static java.lang.String |
reflectMethodProperty(java.lang.Object object,
java.lang.String property)
Normally called internally from reflectProperty.
|
static java.lang.String |
reflectProperty(java.lang.Object object,
java.lang.String property) |
static java.lang.String[] |
reflectPropertyNames(java.lang.Object object)
Deduce available property names at runtime via reflection.
|
public static final java.lang.String INDEX_MARKS
public static final java.lang.String LEFT_INDEX_MARK
public static final java.lang.String RIGHT_INDEX_MARK
public static java.lang.String[] reflectPropertyNames(java.lang.Object object)
object
- -- the actual object or component to be evaluated for properties.LocalAgent.getPropertyNames(Object)
public static java.lang.String reflectFieldProperty(java.lang.Object object, java.lang.String propertyname) throws java.lang.NoSuchFieldException
object
- - object being evaluated for a property (Field) value.property
- - the name of the property being evaluated.NoSuchFieldException(
- property )SAFSInvalidActionArgumentRuntimeException(
- property );java.lang.NoSuchFieldException
reflectProperty(Object,String)
public static java.lang.String reflectMethodProperty(java.lang.Object object, java.lang.String property) throws java.lang.NoSuchMethodException
object
- - object being evaluated for a property (Method) value.property
- - the name of the property being evaluated.NoSuchMethodException(
- property )SAFSInvalidActionArgumentRuntimeException(
- property );java.lang.NoSuchMethodException
reflectProperty(Object,String)
public static java.lang.String reflectProperty(java.lang.Object object, java.lang.String property) throws NoSuchPropertyException
object
- - object being evaluated for a property (Field or Method) value.property
- - the name of the property being evaluated.NoSuchPropertyException(
- property )SAFSInvalidActionArgumentRuntimeException(
- property );NoSuchPropertyException
Copyright © SAS Institute. All Rights Reserved.