public class IndexedAccess extends AccessStrategy
AccessStrategy
to get an indexed member of an Iterable
or
array object.Constructor and Description |
---|
IndexedAccess(Type containerType,
Integer index)
Create a new IndexedAccessStrategy instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(Object instance)
Get the value from the given instance.
|
ElementType |
getElementType()
Get the Java program
ElementType used by this AccessStrategy
to determine property values. |
static Type |
getJavaElementType(Type containerType)
Get the Java element type of a particular container type.
|
Type |
getJavaType()
Get the type of the property
|
String |
getPropertyName()
Get a name representative of this property.
|
public static Type getJavaElementType(Type containerType)
containerType
- null
if containerType
is not
some type of Iterable
or arraypublic Object get(Object instance)
get
in class AccessStrategy
public ElementType getElementType()
ElementType
used by this AccessStrategy
to determine property values.getElementType
in class AccessStrategy
public Type getJavaType()
getJavaType
in class AccessStrategy
public String getPropertyName()
getPropertyName
in class AccessStrategy
Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.