コード例 #1
0
        private void  addInternalVariable(String name)
        {
            /* create a variable node push */
            VariableExp node = InternalVariableExp.create(name);

            m_expStack.Push(node);
        }
コード例 #2
0
        public override System.Object evaluate(Context context)
        {
            // eval the left side and right side
            Object      l = m_left.evaluate(context);
            VariableExp r = VariableExp.create(m_right.evaluate(context).ToString());

            // create a new context object using our left side, then ask
            // the right to evaluate
            Context current = context.createContext(l);

            System.Object result = r.evaluate(current);

            return(result);
        }