Package org.nutz.el

Examples of org.nutz.el.ElException


  public int fetchPriority() {
    return 100;
  }
 
  public void wrap(Queue<Object> obj) {
    throw new ElException("'('符号不能进行wrap操作!");
  }
View Full Code Here


 
  public void wrap(Queue<Object> obj) {
    throw new ElException("'('符号不能进行wrap操作!");
  }
  public Object calculate() {
    throw new ElException("'('符号不能进行计算操作!");
  }
View Full Code Here

import org.nutz.plugin.Plugin;

public class Trim implements RunMethod, Plugin{
  public Object run(List<Object> fetchParam) {
    if(fetchParam.size() <= 0){
      throw new ElException("trim方法参数错误");
    }
    String obj = (String) fetchParam.get(0);
    return obj.trim();
  }
View Full Code Here

  }
  public String fetchSelf() {
    return ")";
  }
  public void wrap(Queue<Object> obj) {
    throw new ElException("')符号不能进行wrap操作!'");
  }
View Full Code Here

  }
  public void wrap(Queue<Object> obj) {
    throw new ElException("')符号不能进行wrap操作!'");
  }
  public Object calculate() {
    throw new ElException("')'符号不能进行计算操作!");
  }
View Full Code Here

    }
    public Object calculate() {
        if(left instanceof Operator){
            return ((Operator) left).calculate();
        }
        throw new ElException("三元表达式错误!");
    }
View Full Code Here

            if (obj != Parse.nullobj) {
                skipSpace();
                return parseItem(obj);
            }
        }
        throw new ElException("无法解析!");
    }
View Full Code Here

            break;
        case 'f':
            sb.append('\f');//这个支持一下又何妨?
            break;
        default:
            throw new ElException("Unexpected char");    //1.b.37及之前的版本,会忽略非法的转义字符
        }
    }
View Full Code Here

                case '9':
                    sb.append(exp.poll());
                    break;
                case '.':
                    if(hasPoint){
                        throw new ElException("表达式错误,请查看是否有多个'.'!");
                    }
                    hasPoint = true;
                    sb.append(exp.poll());
                    break;
                case 'l':
View Full Code Here

            switch(exp.peek()){
            case '=':
                exp.poll();
                return new EQOpt();
            }
            throw new ElException("表达式错误,请检查'='后是否有非法字符!");
        case '!':
            exp.poll();
            switch(exp.peek()){
            case '=':
                exp.poll();
View Full Code Here

TOP

Related Classes of org.nutz.el.ElException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.