Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jexl2.introspection
Interface Uberspect

All Known Implementing Classes:
  UberspectImpl

    public interface Uberspect

'Federated' introspection/reflection interface to allow the introspection behavior in JEXL to be customized.

Since:
  1.0
Version:
  $Id: Uberspect.java 896952 2010-01-07 18:21:29Z henrib $
Author:
  Geir Magusson Jr.

Method Summary
`Constructor<?>` | `getConstructor(Object ctorHandle, Object[] args, JexlInfo info)` Returns a class constructor.
`Iterator<?>` | `getIterator(Object obj, JexlInfo info)` Gets an iterator from an object.
`JexlMethod` | `getMethod(Object obj, String method, Object[] args, JexlInfo info)` Returns a JexlMethod.
`JexlPropertyGet` | `getPropertyGet(Object obj, Object identifier, JexlInfo info)` Property getter.
`JexlPropertySet` | `getPropertySet(Object obj, Object identifier, Object arg, JexlInfo info)` Property setter.
`void` | `setClassLoader(ClassLoader loader)` Sets the class loader to use when getting a constructor with a class name parameter.

Method Detail

### setClassLoader

    void setClassLoader(ClassLoader loader)

  Sets the class loader to use when getting a constructor with a class name parameter.

  Parameters:
    `loader` - the class loader

### getConstructor

    Constructor<?> getConstructor(Object ctorHandle,
                                  Object[] args,
                                  JexlInfo info)

  Returns a class constructor.

  Parameters:
    `ctorHandle` - a class or class name
    `args` - constructor arguments
    `info` - contextual information
  Returns:
    a `Constructor`

### getMethod

    JexlMethod getMethod(Object obj,
                         String method,
                         Object[] args,
                         JexlInfo info)

  Returns a JexlMethod.

  Parameters:
    `obj` - the object
    `method` - the method name
    `args` - method arguments
    `info` - contextual information
  Returns:
    a `JexlMethod`

### getPropertyGet

    JexlPropertyGet getPropertyGet(Object obj,
                                   Object identifier,
                                   JexlInfo info)

  Property getter.

  Returns JexlPropertyGet appropos for ${bar.woogie}.

  Parameters:
    `obj` - the object to get the property from
    `identifier` - property name
    `info` - contextual information
  Returns:
    a `JexlPropertyGet`

### getPropertySet

    JexlPropertySet getPropertySet(Object obj,
                                   Object identifier,
                                   Object arg,
                                   JexlInfo info)

  Property setter.

  returns JelPropertySet appropos for ${foo.bar = "geir"}

  .

  Parameters:
    `obj` - the object to get the property from.
    `identifier` - property name
    `arg` - value to set
    `info` - contextual information
  Returns:
    a `JexlPropertySet`.

### getIterator

    Iterator<?> getIterator(Object obj,
                            JexlInfo info)

  Gets an iterator from an object.

  Parameters:
    `obj` - to get the iterator for
    `info` - contextual information
  Returns:
    an iterator over obj

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.