Top Description Fields Constructors Methods
org.springframework.expression.spel

public final Enum SpelCompilerMode

extends Enum<SpelCompilerMode>
Class Inheritance

Captures the possible configuration settings for a compiler that can be used when evaluating expressions.
Author
Andy Clement
Since
4.1

Field Summary

Modifier and TypeField and Description
public static final SpelCompilerMode
IMMEDIATE

In immediate mode, expressions are compiled as soon as possible (usually after 1 interpreted run).

public static final SpelCompilerMode
MIXED

In mixed mode, expression evaluation silently switches between interpreted and compiled over time.

public static final SpelCompilerMode
OFF

The compiler is switched off; this is the default.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SpelCompilerMode
public static SpelCompilerMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

IMMEDIATEback to summary
public static final SpelCompilerMode IMMEDIATE

In immediate mode, expressions are compiled as soon as possible (usually after 1 interpreted run). If a compiled expression fails it will throw an exception to the caller.

MIXEDback to summary
public static final SpelCompilerMode MIXED

In mixed mode, expression evaluation silently switches between interpreted and compiled over time. After a number of runs the expression gets compiled. If it later fails (possibly due to inferred type information changing) then that will be caught internally and the system switches back to interpreted mode. It may subsequently compile it again later.

OFFback to summary
public static final SpelCompilerMode OFF

The compiler is switched off; this is the default.

Constructor Detail

SpelCompilerModeback to summary
private SpelCompilerMode()

Method Detail

valueOfback to summary
public static SpelCompilerMode valueOf(String name)
valuesback to summary
public static SpelCompilerMode[] values()