Package org.apache.jasper.compiler
Class ELParser
- java.lang.Object
-
- org.apache.jasper.compiler.ELParser
-
public class ELParser extends java.lang.ObjectThis class implements a parser for EL expressions. It takes strings of the form xxx${..}yyy${..}zzz etc, and turn it into a ELNode.Nodes. Currently, it only handles text outside ${..} and functions in ${ ..}.
-
-
Constructor Summary
Constructors Constructor Description ELParser(java.lang.String expression, boolean isDeferredSyntaxAllowedAsLiteral)Creates a new EL parser for the given expression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetType()Returns the type of the parsed EL expression.static ELNode.Nodesparse(java.lang.String expression, boolean isDeferredSyntaxAllowedAsLiteral)Parse an EL expression
-
-
-
Constructor Detail
-
ELParser
public ELParser(java.lang.String expression, boolean isDeferredSyntaxAllowedAsLiteral)Creates a new EL parser for the given expression.- Parameters:
expression- the EL expression to parseisDeferredSyntaxAllowedAsLiteral- whether deferred syntax is allowed as a literal
-
-
Method Detail
-
parse
public static ELNode.Nodes parse(java.lang.String expression, boolean isDeferredSyntaxAllowedAsLiteral)
Parse an EL expression- Parameters:
expression- The input expression string of the form Char* ('${' Char* '}')* Char*isDeferredSyntaxAllowedAsLiteral- Are deferred expressions treated as literals?- Returns:
- Parsed EL expression in ELNode.Nodes
-
getType
public char getType()
Returns the type of the parsed EL expression.- Returns:
- the expression type character
-
-