Package org.apache.derby.iapi.services.loader

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()


    // be comparable to the then expression ??
    if (! thenExpression.getTypeServices().
       comparable(elseExpression.getTypeServices(), false, getClassFactory()) &&
      ! cu.assignableTo(thenExpression.getTypeId().getCorrespondingJavaTypeName(),
                elseExpression.getTypeId().getCorrespondingJavaTypeName()) &&
      ! cu.assignableTo(elseExpression.getTypeId().getCorrespondingJavaTypeName(),
                thenExpression.getTypeId().getCorrespondingJavaTypeName()))
    {
      throw StandardException.newException(SQLState.LANG_NOT_TYPE_COMPATIBLE,
            thenExpression.getTypeId().getSQLTypeName(),
            elseExpression.getTypeId().getSQLTypeName()
View Full Code Here


   * @exception StandardException    Thrown on error
   */
  protected boolean assignableTo(String toClassName) throws StandardException
  {
    ClassInspector classInspector = getClassFactory().getClassInspector();
    return classInspector.assignableTo(javaClassName, toClassName);
  }


  /**
   * Is this class have a public method with the specified signiture
View Full Code Here

                    return; // probably should be only for INOUT/OUT parameters.
                }

                if (SanityManager.DEBUG)
                {
                    SanityManager.ASSERT(classInspector.assignableTo(argumentType, parameterType),
                                         "Argument type " + argumentType + " is not assignable to parameter " + parameterType);
                }

                /*
                ** Set the parameter type in case the argument type is narrower
View Full Code Here

      ClassInspector    cu = cf.getClassInspector();

      TypeId thisCompType = (TypeId) thisType;
      TypeId otherCompType = (TypeId) otherType;

      if (cu.assignableTo(thisCompType.getCorrespondingJavaTypeName(),
                  otherCompType.getCorrespondingJavaTypeName()))
      {
        higherType = otherDTS;
      }
      else
View Full Code Here

      }
      else
      {
        if (SanityManager.DEBUG)
            SanityManager.ASSERT(
              cu.assignableTo(otherCompType.getCorrespondingJavaTypeName(),
                  thisCompType.getCorrespondingJavaTypeName()),
              otherCompType.getCorrespondingJavaTypeName() +
              " expected to be assignable to " +
              thisCompType.getCorrespondingJavaTypeName());
View Full Code Here

   * @exception StandardException    Thrown on error
   */
  protected boolean assignableTo(String toClassName) throws StandardException
  {
    ClassInspector classInspector = getClassFactory().getClassInspector();
    return classInspector.assignableTo(javaClassName, toClassName);
  }


  /**
   * Is this class have a public method with the specified signiture
View Full Code Here

      ClassInspector    cu = cf.getClassInspector();

      TypeId thisCompType = (TypeId) thisType;
      TypeId otherCompType = (TypeId) otherType;

      if (cu.assignableTo(thisCompType.getCorrespondingJavaTypeName(),
                  otherCompType.getCorrespondingJavaTypeName()))
      {
        higherType = otherDTS;
      }
      else
View Full Code Here

      }
      else
      {
        if (SanityManager.DEBUG)
            SanityManager.ASSERT(
              cu.assignableTo(otherCompType.getCorrespondingJavaTypeName(),
                  thisCompType.getCorrespondingJavaTypeName()),
              otherCompType.getCorrespondingJavaTypeName() +
              " expected to be assignable to " +
              thisCompType.getCorrespondingJavaTypeName());
View Full Code Here

          if (routineInfo != null) {
            continue; // probably should be only for INOUT/OUT parameters.
          }

          if (SanityManager.DEBUG) {
            SanityManager.ASSERT(classInspector.assignableTo(argumentType, parameterType),
              "Argument type " + argumentType + " is not assignable to parameter " + parameterType);
          }

          /*
          ** Set the parameter type in case the argument type is narrower
View Full Code Here

   * @exception StandardException    Thrown on error
   */
  protected boolean assignableTo(String toClassName) throws StandardException
  {
    ClassInspector classInspector = getClassFactory().getClassInspector();
    return classInspector.assignableTo(javaClassName, toClassName);
  }


  /**
   * Is this class have a public method with the specified signiture
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.