Example #1
0
 /*
  * (non-Javadoc)
  *
  * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
  */
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   this.expr = in.readUTF();
   String type = in.readUTF();
   if (!"".equals(type)) {
     this.expectedType = ReflectionUtil.forName(type);
   }
   this.paramTypes = ReflectionUtil.toTypeArray(((String[]) in.readObject()));
   this.fnMapper = (FunctionMapper) in.readObject();
   this.varMapper = (VariableMapper) in.readObject();
 }
Example #2
0
 /*
  * (non-Javadoc)
  *
  * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
  */
 public void writeExternal(ObjectOutput out) throws IOException {
   out.writeUTF(this.expr);
   out.writeUTF((this.expectedType != null) ? this.expectedType.getName() : "");
   out.writeObject(ReflectionUtil.toTypeNameArray(this.paramTypes));
   out.writeObject(this.fnMapper);
   out.writeObject(this.varMapper);
 }