/** Converts to a string. */ public String toString() { if (_object != null) { return String.valueOf(_object); } else { return String.valueOf(_classDef.getName()); } }
private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { _env = Env.getInstance(); _classDef = _env.getJavaClassDefinition((String) in.readObject()); int id = _env.getQuercus().getClassId(_classDef.getName()); setQuercusClass(_env.createQuercusClass(id, _classDef, null)); _object = in.readObject(); }
@Override public String getClassName() { return _classDef.getName(); }