예제 #1
0
  /**
   * Determine whether thisType is storable in otherType due to otherType being a user type.
   *
   * @param thisType The TypeId of the value to be stored
   * @param otherType The TypeId of the value to be stored in
   * @return true if thisType is storable in otherType
   */
  protected boolean userTypeStorable(TypeId thisType, TypeId otherType, ClassFactory cf) {
    /*
     ** If the other type is user-defined, use the java types to determine
     ** assignability.
     */
    if (otherType.userType()) {
      return cf.getClassInspector()
          .assignableTo(
              thisType.getCorrespondingJavaTypeName(), otherType.getCorrespondingJavaTypeName());
    }

    return false;
  }
 public LoadedGeneratedClass(ClassFactory cf, Class jvmClass) {
   ci = new ClassInfo(jvmClass);
   classLoaderVersion = cf.getClassLoaderVersion();
 }