public class

FunctionReference

extends SpelNodeImpl
java.lang.Object
   ↳ org.springframework.expression.spel.ast.SpelNodeImpl
     ↳ org.springframework.expression.spel.ast.FunctionReference

Class Overview

A function reference is of the form "#someFunction(a,b,c)". Functions may be defined in the context prior to the expression being evaluated or within the expression itself using a lambda function definition. For example: Lambda function definition in an expression: "(#max = {|x,y|$x>$y?$x:$y};max(2,3))" Calling context defined function: "#isEven(37)". Functions may also be static java methods, registered in the context prior to invocation of the expression.

Functions are very simplistic, the arguments are not part of the definition (right now), so the names must be unique.

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
FunctionReference(String functionName, int pos, SpelNodeImpl... arguments)
Public Methods
TypedValue getValueInternal(ExpressionState state)
String toStringAST()
[Expand]
Inherited Methods
From class org.springframework.expression.spel.ast.SpelNodeImpl
From class java.lang.Object
From interface org.springframework.expression.spel.SpelNode

Public Constructors

public FunctionReference (String functionName, int pos, SpelNodeImpl... arguments)

Public Methods

public TypedValue getValueInternal (ExpressionState state)

public String toStringAST ()