Class UberspectImpl.IndexedContainer
- java.lang.Object
-
- org.apache.commons.jexl2.introspection.UberspectImpl.IndexedContainer
-
- Enclosing class:
- UberspectImpl
public static final class UberspectImpl.IndexedContainer extends java.lang.Object
A generic indexed property container, exposes get(key) and set(key, value) and solves method call dynamically based on arguments.- Since:
- 2.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.Object key)
Gets a property from a container.java.lang.Object
set(java.lang.Object key, java.lang.Object value)
Sets a property in a container.
-
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.Object key) throws java.lang.Exception
Gets a property from a container.- Parameters:
key
- the property key- Returns:
- the property value
- Throws:
java.lang.Exception
- if inner invocation fails
-
set
public java.lang.Object set(java.lang.Object key, java.lang.Object value) throws java.lang.Exception
Sets a property in a container.- Parameters:
key
- the property keyvalue
- the property value- Returns:
- the invocation result (frequently null)
- Throws:
java.lang.Exception
- if inner invocation fails
-
-