org.thymeleaf.standard.expression
Class Expression

Object
  extended by org.thymeleaf.standard.expression.Expression
All Implemented Interfaces:
Serializable, IStandardExpression
Direct Known Subclasses:
ComplexExpression, SimpleExpression

public abstract class Expression
extends Object
implements IStandardExpression, Serializable

Since:
1.1
Author:
Daniel Fernández
See Also:
Serialized Form

Field Summary
static char NESTING_END_CHAR
           
static char NESTING_START_CHAR
           
static char PARSING_PLACEHOLDER_CHAR
           
 
Constructor Summary
protected Expression()
           
 
Method Summary
 Object execute(Configuration configuration, IProcessingContext processingContext)
           Execute the expression.
 Object execute(Configuration configuration, IProcessingContext processingContext, StandardExpressionExecutionContext expContext)
           Execute the expression.
abstract  String getStringRepresentation()
           Obtain a string representation of the expression.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARSING_PLACEHOLDER_CHAR

public static final char PARSING_PLACEHOLDER_CHAR
See Also:
Constant Field Values

NESTING_START_CHAR

public static final char NESTING_START_CHAR
See Also:
Constant Field Values

NESTING_END_CHAR

public static final char NESTING_END_CHAR
See Also:
Constant Field Values
Constructor Detail

Expression

protected Expression()
Method Detail

getStringRepresentation

public abstract String getStringRepresentation()
Description copied from interface: IStandardExpression

Obtain a string representation of the expression.

Specified by:
getStringRepresentation in interface IStandardExpression
Returns:
the String representation

toString

public String toString()
Overrides:
toString in class Object

execute

public Object execute(Configuration configuration,
                      IProcessingContext processingContext)
Description copied from interface: IStandardExpression

Execute the expression.

Specified by:
execute in interface IStandardExpression
Parameters:
configuration - the Configuration object for the template execution environment.
processingContext - the processing context object containing the variables to be applied to the expression.
Returns:
the result of executing the expression.

execute

public Object execute(Configuration configuration,
                      IProcessingContext processingContext,
                      StandardExpressionExecutionContext expContext)
Description copied from interface: IStandardExpression

Execute the expression.

Specified by:
execute in interface IStandardExpression
Parameters:
configuration - the Configuration object for the template execution environment.
processingContext - the processing context object containing the variables to be applied to the expression.
expContext - the expression execution context to be applied (preprocessing, etc.)
Returns:
the result of executing the expression.


Copyright © 2013 The THYMELEAF team. All Rights Reserved.