Package com.caucho.quercus.program.ClassDef

Examples of com.caucho.quercus.program.ClassDef.FieldEntry


  public void initInstance(Env env, Value value)
  {
    ObjectValue object = (ObjectValue) value;
   
    for (Map.Entry<StringValue,FieldEntry> entry : _fieldMap.entrySet()) {
      FieldEntry fieldEntry = entry.getValue();

      object.initField(entry.getKey(),
                       fieldEntry.getValue().eval(env).copy(),
                       fieldEntry.getVisibility());
    }

    if (_destructor != null && value instanceof ObjectExtValue)
      env.addObjectCleanup((ObjectExtValue) object);
  }
View Full Code Here


   * Returns the comment for the specified field.
   */
  @Override
  public String getFieldComment(StringValue name)
  {
    FieldEntry field = _fieldMap.get(name);
   
    if (field != null)
      return field.getComment();
    else
      return null;
  }
View Full Code Here

TOP

Related Classes of com.caucho.quercus.program.ClassDef.FieldEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.