Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.kind()


        argsContainCast = true;
      }
      argument.setExpressionContext(INVOCATION_CONTEXT);
      if ((argumentType = argumentTypes[i] = this.arguments[i].resolveType(scope)) == null)
        argHasError = true;
      if (argumentType != null && argumentType.kind() == Binding.POLY_TYPE) {
        if (this.innerInferenceHelper == null)
          this.innerInferenceHelper = new InnerInferenceHelper();
      }
    }
    if (argHasError) {
View Full Code Here


            // Not an unboxable type - could be primitive, array, not a type at all, etc.
            throw new IllegalArgumentException("Given type mirror cannot be unboxed"); //$NON-NLS-1$
        }
        ReferenceBinding boxed = (ReferenceBinding)((TypeMirrorImpl)t)._binding;
        TypeBinding unboxed = _env.getLookupEnvironment().computeBoxingType(boxed);
        if (unboxed.kind() != Binding.BASE_TYPE) {
            // No boxing conversion was found
            throw new IllegalArgumentException();
        }
        return _env.getFactory().getPrimitiveType((BaseTypeBinding)unboxed);
    }
View Full Code Here

            // Not an unboxable type - could be primitive, array, not a type at all, etc.
            throw new IllegalArgumentException("Given type mirror cannot be unboxed"); //$NON-NLS-1$
        }
        ReferenceBinding boxed = (ReferenceBinding)((TypeMirrorImpl)t)._binding;
        TypeBinding unboxed = _env.getLookupEnvironment().computeBoxingType(boxed);
        if (unboxed.kind() != Binding.BASE_TYPE) {
            // No boxing conversion was found
            throw new IllegalArgumentException();
        }
        return (PrimitiveType) _env.getFactory().newTypeMirror((BaseTypeBinding)unboxed);
    }
View Full Code Here

    for (int i = 0; i < length; i++) {
      TypeBinding exceptionType = this.typeReferences[i].resolveType(scope, checkBounds, location);
      if (exceptionType == null) {
        return null;
      }
      switch(exceptionType.kind()) {
        case Binding.PARAMETERIZED_TYPE :
          if (exceptionType.isBoundParameterizedType()) {
            hasError = true;
            scope.problemReporter().invalidParameterizedExceptionType(exceptionType, this.typeReferences[i]);
            // fall thru to create the variable - avoids additional errors because the variable is missing
View Full Code Here

      }
      argument.setExpressionContext(INVOCATION_CONTEXT);
      if ((argumentType = argumentTypes[i] = argument.resolveType(scope)) == null) {
        argHasError = true;
      }
      if (argumentType != null && argumentType.kind() == Binding.POLY_TYPE) {
        if (this.innerInferenceHelper == null)
          this.innerInferenceHelper = new InnerInferenceHelper();
      }
    }
    if (argHasError) {
View Full Code Here

    for (int i = 0; i < length; i++) {
      TypeBinding exceptionType = this.typeReferences[i].resolveType(scope, checkBounds);
      if (exceptionType == null) {
        return null;
      }
      switch(exceptionType.kind()) {
        case Binding.PARAMETERIZED_TYPE :
          if (exceptionType.isBoundParameterizedType()) {
            hasError = true;
            scope.problemReporter().invalidParameterizedExceptionType(exceptionType, this.typeReferences[i]);
            // fall thru to create the variable - avoids additional errors because the variable is missing
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.