Example #1
0
 ///<summary>
 ///Parses the given OGNL expression and returns a tree representation of the
 ///expression that can be used by <c>Ognl</c> static methods.
 ///</summary>
 ///<param name="expression">the OGNL expression to be parsed</param>
 ///<returns>a tree representation of the expression</returns>
 ///<exception cref="ExpressionSyntaxException">if the expression is malformed</exception>
 ///<exception cref="OgnlException"> if there is a pathological environmental problem</exception>
 ///
 public static object parseExpression(string expression)          // throws OgnlException
 {
     try
     {
         OgnlParser parser = new OgnlParser(new StringReader(expression));
         return(parser.topLevelExpression());
     }
     catch (ParseException e)
     {
         throw new ExpressionSyntaxException(expression, e);
     }
     catch (TokenMgrError e)
     {
         throw new ExpressionSyntaxException(expression, e);
     }
 }
Example #2
0
 public ASTLess(OgnlParser p, int id) : base(p, id)
 {
 }
Example #3
0
 public ASTRemainder(OgnlParser p, int id) : base(p, id)
 {
 }
Example #4
0
 public ASTThisVarRef(OgnlParser p, int id) : base(p, id)
 {
 }
Example #5
0
 public ASTNotIn(OgnlParser p, int id) : base(p, id)
 {
 }
Example #6
0
 public ASTMultiply(OgnlParser p, int id) : base(p, id)
 {
 }
Example #7
0
 public ASTEval(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
Example #8
0
 public SimpleNode(OgnlParser p, int i) : this(i){
     parser = p;
 }
Example #9
0
 public ASTSequence(OgnlParser p, int id) : base(p, id)
 {
 }
Example #10
0
 public ASTSubtract(OgnlParser p, int id) : base(p, id)
 {
 }
Example #11
0
 public ExpressionNode(OgnlParser p, int i) : base(p, i)
 {
     ;
 }
Example #12
0
 public ASTList(OgnlParser p, int id) : base(p, id)
 {
 }
Example #13
0
 public ASTDivide(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
Example #14
0
 public ASTShiftLeft(OgnlParser p, int id) : base(p, id)
 {
 }
Example #15
0
 public ASTKeyValue(OgnlParser p, int id) : base(p, id)
 {
 }
Example #16
0
 public ASTProject(OgnlParser p, int id) : base(p, id)
 {
 }
Example #17
0
 public ASTChain(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
Example #18
0
 public ASTGreaterEq(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
Example #19
0
 public ASTShiftRight(OgnlParser p, int id) : base(p, id)
 {
 }
Example #20
0
 public ASTBitOr(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
Example #21
0
 public ASTMethod(OgnlParser p, int id) : base(p, id)
 {
 }
Example #22
0
 public ASTAdd(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
Example #23
0
 public ASTSelectLast(OgnlParser p, int id) : base(p, id)
 {
 }
Example #24
0
 public ASTProperty(OgnlParser p, int id)
     : base(p, id)
 {
 }
Example #25
0
 public ASTConst(OgnlParser p, int id) :  base(p, id)
 {
     ;
 }
Example #26
0
 public ASTUnsignedShiftRight(OgnlParser p, int id) : base(p, id)
 {
 }
Example #27
0
 public ASTNegate(OgnlParser p, int id) : base(p, id)
 {
 }
Example #28
0
 public ASTOr(OgnlParser p, int id) : base(p, id)
 {
 }
Example #29
0
 public ASTRootVarRef(OgnlParser p, int id) : base(p, id)
 {
 }
Example #30
0
 public ASTStaticField(OgnlParser p, int id) : base(p, id)
 {
 }