日期:2014-05-20  浏览次数:20761 次

熟悉,精通java的来
 这是调用的类:
private static class ExpressionGet implements Get
    {
        private FactExpression expression;
        public ExpressionGet(FactExpression expression)
        {
            this.expression = expression;
        }

        @Override
        public Object getValue(FLOW_LOG flowLog)
        {
            MethodGet getVal = new MethodGet(flowLog);
            Object obj = expression.eval(getVal);
            return obj;
        }

        @Override
        public int getIntValue(FLOW_LOG flowLog)
        {
            Object val = getValue(flowLog);
            if (val == null)
            {
                return 0;
            }
            if (val instanceof Number)
            {
                return ((Number)val).intValue();
            }
            else
            {
                return Integer.parseInt(val.toString());
            }
        }

        @Override
        public long getLongValue(FLOW_LOG flowLog)
        {