Exemple #1
0
 public static Property create(Env env, QuercusClass cls, StringValue nameV)
 {
     if (cls.getClassField(nameV) != null)
     {
         return(new Property(cls, nameV));
     }
     else if (cls.getStaticFieldValue(env, nameV) != null)
     {
         return(new StaticProperty(cls, nameV));
     }
     else
     {
         throw new ReflectionException(env, L.l("Property {0}->${1} does not exist",
                                                cls.getName(), nameV));
     }
 }
Exemple #2
0
            protected QuercusClass getDeclaringClassImpl(Env env, QuercusClass cls)
            {
                if (cls == null)
                {
                    return(null);
                }

                QuercusClass refClass = getDeclaringClassImpl(env, cls.getParent());

                if (refClass != null)
                {
                    return(refClass);
                }
                else if (cls.getClassField(_nameV) != null)
                {
                    return(cls);
                }

                return(null);
            }
Exemple #3
0
            public bool isPublic()
            {
                ClassField field = _cls.getClassField(_nameV);

                return(field.isPublic());
            }
Exemple #4
0
 public bool hasProperty(StringValue name)
 {
     return(_cls.getClassField(name) != null);
 }