Esempio n. 1
0
 /**
  * For serialization purposes, resolve a deserialized instance to an instance in the expression
  * cache.
  */
 private Object readResolve() throws ObjectStreamException {
   return ExpressionCache.cacheExpression(this);
 }
Esempio n. 2
0
 /**
  * Resolves the current expression, possibly into a different expression object. This is loosely
  * equivalent to the serialization protocol's <code>readResolve</code> method. Situations where
  * this may be used are:
  *
  * <ul>
  *   <li>Caching frequently-used expression objects
  *   <li>Evaluating constant expressions, and returning a constant reference
  * </ul>
  */
 public Expression resolveExpression() {
   return ExpressionCache.cacheExpression(this);
 }
Esempio n. 3
0
 /**
  * For serialization purposes, resolve a deserialized instance to an instance in the expression
  * cache.
  */
 private Object readResolve() throws ObjectStreamException {
   if (isComplete()) {
     return ExpressionCache.cacheExpression(this);
   }
   return this;
 }