示例#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);
     }
 }
示例#2
0
 public ASTLess(OgnlParser p, int id) : base(p, id)
 {
 }
示例#3
0
 public ASTRemainder(OgnlParser p, int id) : base(p, id)
 {
 }
示例#4
0
 public ASTThisVarRef(OgnlParser p, int id) : base(p, id)
 {
 }
示例#5
0
 public ASTNotIn(OgnlParser p, int id) : base(p, id)
 {
 }
示例#6
0
 public ASTMultiply(OgnlParser p, int id) : base(p, id)
 {
 }
示例#7
0
 public ASTEval(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
示例#8
0
 public SimpleNode(OgnlParser p, int i) : this(i){
     parser = p;
 }
示例#9
0
 public ASTSequence(OgnlParser p, int id) : base(p, id)
 {
 }
示例#10
0
 public ASTSubtract(OgnlParser p, int id) : base(p, id)
 {
 }
示例#11
0
 public ExpressionNode(OgnlParser p, int i) : base(p, i)
 {
     ;
 }
示例#12
0
 public ASTList(OgnlParser p, int id) : base(p, id)
 {
 }
示例#13
0
 public ASTDivide(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
示例#14
0
 public ASTShiftLeft(OgnlParser p, int id) : base(p, id)
 {
 }
示例#15
0
 public ASTKeyValue(OgnlParser p, int id) : base(p, id)
 {
 }
示例#16
0
 public ASTProject(OgnlParser p, int id) : base(p, id)
 {
 }
示例#17
0
 public ASTChain(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
示例#18
0
 public ASTGreaterEq(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
示例#19
0
 public ASTShiftRight(OgnlParser p, int id) : base(p, id)
 {
 }
示例#20
0
 public ASTBitOr(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
示例#21
0
 public ASTMethod(OgnlParser p, int id) : base(p, id)
 {
 }
示例#22
0
 public ASTAdd(OgnlParser p, int id) : base(p, id)
 {
     ;
 }
示例#23
0
 public ASTSelectLast(OgnlParser p, int id) : base(p, id)
 {
 }
示例#24
0
 public ASTProperty(OgnlParser p, int id)
     : base(p, id)
 {
 }
示例#25
0
 public ASTConst(OgnlParser p, int id) :  base(p, id)
 {
     ;
 }
示例#26
0
 public ASTUnsignedShiftRight(OgnlParser p, int id) : base(p, id)
 {
 }
示例#27
0
 public ASTNegate(OgnlParser p, int id) : base(p, id)
 {
 }
示例#28
0
 public ASTOr(OgnlParser p, int id) : base(p, id)
 {
 }
示例#29
0
 public ASTRootVarRef(OgnlParser p, int id) : base(p, id)
 {
 }
示例#30
0
 public ASTStaticField(OgnlParser p, int id) : base(p, id)
 {
 }