You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/07/12 19:23:11 UTC
svn commit: r1502624 - /tomcat/trunk/java/org/apache/el/parser/ELParser.jjt
Author: markt
Date: Fri Jul 12 17:23:10 2013
New Revision: 1502624
URL: http://svn.apache.org/r1502624
Log:
Cosmetic clean-up
- line length
- alignment
Modified:
tomcat/trunk/java/org/apache/el/parser/ELParser.jjt
Modified: tomcat/trunk/java/org/apache/el/parser/ELParser.jjt
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/ELParser.jjt?rev=1502624&r1=1502623&r2=1502624&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/ELParser.jjt (original)
+++ tomcat/trunk/java/org/apache/el/parser/ELParser.jjt Fri Jul 12 17:23:10 2013
@@ -39,10 +39,9 @@ PARSER_BEGIN( ELParser )
package org.apache.el.parser;
import java.io.StringReader;
import javax.el.ELException;
-public class ELParser
-{
- public static Node parse(String ref) throws ELException
- {
+public class ELParser {
+
+ public static Node parse(String ref) throws ELException {
try {
return (new ELParser(new StringReader(ref))).CompositeExpression();
} catch (ParseException pe) {
@@ -59,7 +58,9 @@ PARSER_END( ELParser )
*/
AstCompositeExpression CompositeExpression() #CompositeExpression : {}
{
- (DeferredExpression() | DynamicExpression() | LiteralExpression())* <EOF> { return jjtThis; }
+ (DeferredExpression() |
+ DynamicExpression() |
+ LiteralExpression())* <EOF> { return jjtThis; }
}
/*
@@ -73,7 +74,7 @@ void LiteralExpression() #LiteralExpress
/*
* DeferredExpression
- * #{..} Expressions
+ * #{...} Expressions
*/
void DeferredExpression() #DeferredExpression : {}
{
@@ -358,7 +359,7 @@ void Null() #Null : {}
}
-/* ==================================================================================== */
+/* ========================================================================== */
<DEFAULT> TOKEN :
{
/*
@@ -384,17 +385,17 @@ void Null() #Null : {}
<IN_EXPRESSION> TOKEN :
{
- < INTEGER_LITERAL: ["0"-"9"] (["0"-"9"])* >
+ < INTEGER_LITERAL: ["0"-"9"] (["0"-"9"])* >
| < FLOATING_POINT_LITERAL: (["0"-"9"])+ "." (["0"-"9"])* (<EXPONENT>)?
| "." (["0"-"9"])+ (<EXPONENT>)?
| (["0"-"9"])+ <EXPONENT>
- >
+ >
| < #EXPONENT: ["e","E"] (["+","-"])? (["0"-"9"])+ >
| < STRING_LITERAL: ("\"" ((~["\"","\\"])
| ("\\" ( ["\\","\"","\'"] )))* "\"")
| ("\'" ((~["\'","\\"])
| ("\\" ( ["\\","\"","\'"] )))* "\'")
- >
+ >
| < TRUE : "true" >
| < FALSE : "false" >
| < NULL : "null" >
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org