Lines Matching defs:newInstance
112 Object newInstance = out.get(oldInstance);
113 if (!mutatesTo(oldInstance, newInstance)) {
118 initialize(oldInstance.getClass(), oldInstance, newInstance, out);
124 * created by applying a series of statements to <code>newInstance</code>.
137 * @param newInstance The instance that is to be modified.
138 * @return True if an equivalent copy of <code>newInstance</code> may be
141 protected boolean mutatesTo(Object oldInstance, Object newInstance) {
142 return (newInstance != null && oldInstance != null &&
143 oldInstance.getClass() == newInstance.getClass());
169 * Produce a series of statements with side effects on <code>newInstance</code>
173 * <code>newInstance</code> in the behavior of all methods in its
186 * as references to the <code>newInstance</code> instead.
201 * @param newInstance The instance that is to be modified.
207 Object oldInstance, Object newInstance,
212 info.initialize(superType, oldInstance, newInstance, out);