Examples of resolveType()


Examples of org.apache.hivemind.internal.Module.resolveType()

        e.setLocation(l);

        MockControl c = newControl(Module.class);
        Module m = (Module) c.getMock();

        m.resolveType("bad.class.Name");
        ApplicationRuntimeException cause = new ApplicationRuntimeException("failure");
        c.setThrowable(cause);

        replayControls();
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ArrayQualifiedTypeReference.resolveType()

      for (int i = 0; i < atr.dimensions(); i++) {
        handleSig.append("\\[");
      }
      TypeBinding typeB = atr.resolvedType;
      if (typeB == null) {
        typeB = atr.resolveType(scope);
      }
      if (typeB.leafComponentType().isBaseType()) {
        handleSig.append(tb.leafComponentType().signature());
      } else {
        char[][] tokens = atr.tokens;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ArrayTypeReference.resolveType()

      for (int i = 0; i < atr.dimensions; i++) {
        handleSig.append("\\[");
      }
      TypeBinding typeB = atr.resolvedType;
      if (typeB == null) {
        typeB = atr.resolveType(scope);
      }
      if (typeB.leafComponentType().isBaseType()) {
        handleSig.append(tb.leafComponentType().signature());
      } else {
        handleSig.append('Q').append(atr.token).append(';');
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ArrayTypeReference.resolveType()

      for (int i = 0; i < atr.dimensions(); i++) {
        handleSig.append("\\[");
      }
      TypeBinding typeB = atr.resolvedType;
      if (typeB == null) {
        typeB = atr.resolveType(scope);
      }
      if (typeB.leafComponentType().isBaseType()) {
        handleSig.append(tb.leafComponentType().signature());
      } else {
        char[][] tokens = atr.tokens;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression.resolveType()

      Expression argument = this.arguments[i];
      if (argument instanceof CastExpression) {
        argument.bits |= DisableUnnecessaryCastCheck; // will check later on
        argsContainCast = true;
      }
      if ((argumentTypes[i] = argument.resolveType(scope)) == null) {
        argHasError = true;
      }
    }
    if (argHasError) {
      return this.resolvedType;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression.resolveType()


  //  checkInvocationArguments(scope, this.receiver, this.actualReceiverType, this.binding, this.arguments, argumentTypes, argsContainCast, this);
    for (int i=0, len=arguments.length; i < len; i++) {
      Expression arg = arguments[i];
      TypeBinding argType = arg.resolveType(scope);
      if (argType != null) {
        TypeBinding paramType = binding.parameters[i];
        if (!argType.isCompatibleWith(paramType)) {
          scope.problemReporter().typeMismatchError(argType, paramType, arg);
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.ThisReference.resolveType()

          return this.getTypeBinding(literal.literalType(null));
        case ASTNode.THIS_EXPRESSION :
          ThisReference thisReference = (ThisReference) this.newAstToOldAst.get(expression);
          BlockScope blockScope = (BlockScope) this.astNodesToBlockScope.get(expression);
          if (blockScope != null) {
            return this.getTypeBinding(thisReference.resolveType(blockScope));
          }
          break;
        case ASTNode.PARENTHESIZED_EXPRESSION :
          ParenthesizedExpression parenthesizedExpression = (ParenthesizedExpression) expression;
          return this.resolveExpressionType(parenthesizedExpression.getExpression());
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType()

        handleSig.append("\\<");
        for (int i = 0; i < typeRefs.length; i++) {
          TypeReference typeR = typeRefs[i];
          TypeBinding typeB = typeR.resolvedType;
          if (typeB == null) {
            typeB = typeR.resolveType(scope);
          }
          createHandleSigForReference(typeR, typeB, scope, handleSig);
        }
        handleSig.append('>');
      }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType()

          handleSig.append("\\<");
          for (int j = 0; j < typeRefs.length; j++) {
            TypeReference typeR = typeRefs[j];
            TypeBinding typeB = typeR.resolvedType;
            if (typeB == null) {
              typeB = typeR.resolveType(scope);
            }
            createHandleSigForReference(typeR, typeB, scope, handleSig);
          }
          handleSig.append('>');
        }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType()

        if (acceptArgument(argName, argArray[i].type.toString())) {
          TypeReference typeR = argArray[i].type;
          if (typeR != null && md.scope != null) {
            TypeBinding typeB = typeR.resolvedType;
            if (typeB == null) {
              typeB = typeR.resolveType(md.scope);
            }
            // This code will conjure up a 'P' style signature:
            // EclipseFactory factory = EclipseFactory.fromScopeLookupEnvironment(md.scope);
            // UnresolvedType ut = factory.fromBinding(typeB);
            // paramSigs.add(ut.getSignature().toCharArray());
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.