public ThisMethodExpr(Location location,
                              ThisExpr qThis,
                              StringValue methodName,
                              ArrayList <Expr> args)
        {
            super(location, qThis, methodName, args);

            _classDef = qThis.getClassDef();

            _hashCodeInsensitive = methodName.hashCodeCaseInsensitive();
        }
Exemple #2
0
        private StringValue evalName(Env env)
        {
            StringValue name = _nameExpr.evalStringValue(env);

            ClassField entry = _qThis.getClassDef().getField(name);

            if (entry != null)
            {
                name = entry.getCanonicalName();
            }

            return(name);
        }
        public void init()
        {
            /// XXX: have this called by QuercusParser after class parsing

            if (!_isInit)
            {
                _isInit = true;

                ClassField entry = _qThis.getClassDef().getField(_name);

                if (entry != null)
                {
                    _name = entry.getCanonicalName();
                }
            }
        }