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)); } }
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); }
public bool isPublic() { ClassField field = _cls.getClassField(_nameV); return(field.isPublic()); }
public bool hasProperty(StringValue name) { return(_cls.getClassField(name) != null); }