Class IndexedType.IndexedContainer
java.lang.Object
org.apache.commons.jexl3.internal.introspection.IndexedType.IndexedContainer
- Enclosing class:
IndexedType
A generic indexed property container, exposes get(key) and set(key, value)
and solves method call dynamically based on arguments.
Must remain public for introspection purpose.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ObjectThe container instance.(package private) final IndexedTypeThe container type instance. -
Constructor Summary
ConstructorsConstructorDescriptionIndexedContainer(IndexedType theType, Object theContainer) Creates a new duck container. -
Method Summary
Modifier and TypeMethodDescriptionGets a property from this indexed container.Class<?> Gets the property container class.Gets the property container name.Sets a property in this indexed container.
-
Field Details
-
container
The container instance. -
type
The container type instance.
-
-
Constructor Details
-
IndexedContainer
IndexedContainer(IndexedType theType, Object theContainer) Creates a new duck container.- Parameters:
theType- the container typetheContainer- the container instance
-
-
Method Details
-
get
Gets a property from this indexed container.- Parameters:
key- the property key- Returns:
- the property value
- Throws:
Exception- if inner invocation fails
-
getContainerClass
Gets the property container class.- Returns:
- the container class
-
getContainerName
Gets the property container name.- Returns:
- the container name
-
set
Sets a property in this indexed container.- Parameters:
key- the property keyvalue- the property value- Returns:
- the invocation result (frequently null)
- Throws:
Exception- if inner invocation fails
-