ELProcessor (EL 3.0 API Documentation - Apache Tomcat 9.0.120)
Description: declaration: package: javax.el, class: ELProcessor

# Class ELProcessor

java.lang.Object
javax.el.ELProcessor

public class ELProcessor extends Object

Since:
  EL 3.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ELProcessor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `defineBean(String name, Object bean)`
  `void`
  `defineFunction(String prefix, String function, Method method)`
  Map a method to a function name.
  `void`
  `defineFunction(String prefix, String function, String className, String methodName)`
  `Object`
  `eval(String expression)`
  `ELManager`
  `getELManager()`
  `Object`
  `getValue(String expression, Class<?> expectedType)`
  `void`
  `setValue(String expression, Object value)`
  `void`
  `setVariable(String variable, String expression)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ELProcessor

    public ELProcessor()

- ## Method Details

  - ### getELManager

    public ELManager getELManager()

  - ### eval

    public Object eval(String expression)

  - ### getValue

    public Object getValue(String expression, Class<?> expectedType)

  - ### setValue

    public void setValue(String expression, Object value)

  - ### setVariable

    public void setVariable(String variable, String expression)

  - ### defineFunction

    public void defineFunction(String prefix, String function, String className, String methodName) throws ClassNotFoundException, NoSuchMethodException
    Throws:
      `ClassNotFoundException`
      `NoSuchMethodException`

  - ### defineFunction

    public void defineFunction(String prefix, String function, Method method) throws NoSuchMethodException
    Map a method to a function name.
    Parameters:
      `prefix` - Function prefix
      `function` - Function name
      `method` - Method
    Throws:
      `NullPointerException` - If any of the arguments are null
      `NoSuchMethodException` - If the method is not static

  - ### defineBean

    public void defineBean(String name, Object bean)