org.springframework.expression.common
Class TemplateAwareExpressionParser.Bracket

java.lang.Object
  extended by org.springframework.expression.common.TemplateAwareExpressionParser.Bracket
Enclosing class:
TemplateAwareExpressionParser

private static class TemplateAwareExpressionParser.Bracket
extends java.lang.Object

This captures a type of bracket and the position in which it occurs in the expression. The positional information is used if an error has to be reported because the related end bracket cannot be found. Bracket is used to describe: square brackets [] round brackets () and curly brackets {}


Field Summary
(package private)  char bracket
           
(package private)  int pos
           
 
Constructor Summary
TemplateAwareExpressionParser.Bracket(char bracket, int pos)
           
 
Method Summary
(package private)  boolean compatibleWithCloseBracket(char closeBracket)
           
(package private) static char theCloseBracketFor(char openBracket)
           
(package private) static char theOpenBracketFor(char closeBracket)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bracket

char bracket

pos

int pos
Constructor Detail

TemplateAwareExpressionParser.Bracket

TemplateAwareExpressionParser.Bracket(char bracket,
                                      int pos)
Method Detail

compatibleWithCloseBracket

boolean compatibleWithCloseBracket(char closeBracket)

theOpenBracketFor

static char theOpenBracketFor(char closeBracket)

theCloseBracketFor

static char theCloseBracketFor(char openBracket)