org.springframework.expression.spel.standard.internal
Class InternalSpelExpressionParser

java.lang.Object
  extended by org.springframework.expression.common.TemplateAwareExpressionParser
      extended by org.springframework.expression.spel.standard.internal.InternalSpelExpressionParser
All Implemented Interfaces:
ExpressionParser

public class InternalSpelExpressionParser
extends TemplateAwareExpressionParser

Hand written SpEL parser. Instances are reusable but are not thread safe.

Since:
3.0
Author:
Andy Clement

Constructor Summary
InternalSpelExpressionParser()
          Create a parser.
InternalSpelExpressionParser(int configuration)
          Create a parser with some configured behaviour.
 
Method Summary
 SpelExpression doParseExpression(String expressionString, ParserContext context)
          Actually parse the expression string and return an Expression object.
 SpelExpression parse(String expressionString)
           
 String toString(org.springframework.expression.spel.standard.internal.Token t)
           
 
Methods inherited from class org.springframework.expression.common.TemplateAwareExpressionParser
parseExpression, parseExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalSpelExpressionParser

public InternalSpelExpressionParser()
Create a parser.


InternalSpelExpressionParser

public InternalSpelExpressionParser(int configuration)
Create a parser with some configured behaviour. Supported configuration bit flags can be seen in SpelExpressionParserConfiguration

Parameters:
configuration - bitflags for configuration options
Method Detail

parse

public SpelExpression parse(String expressionString)
                     throws ParseException
Throws:
ParseException

doParseExpression

public SpelExpression doParseExpression(String expressionString,
                                        ParserContext context)
                                 throws ParseException
Description copied from class: TemplateAwareExpressionParser
Actually parse the expression string and return an Expression object.

Specified by:
doParseExpression in class TemplateAwareExpressionParser
Parameters:
expressionString - the raw expression string to parse
context - a context for influencing this expression parsing routine (optional)
Returns:
an evaluator for the parsed expression
Throws:
ParseException - an exception occurred during parsing

toString

public String toString(org.springframework.expression.spel.standard.internal.Token t)