Examples of resolveTypeBinding()


Examples of org.eclipse.jdt.core.dom.Name.resolveTypeBinding()

        if (x instanceof IVariableBinding) {
          hidden = hidden(vb.getType(), (IVariableBinding) x);
        }

        if (hidden) {
          staticCast(qualifier.resolveTypeBinding(),
              ((IVariableBinding) x).getDeclaringClass());
        }

        npcAccept(qualifier);
View Full Code Here

Examples of org.eclipse.jdt.core.dom.SimpleName.resolveTypeBinding()

          checkNode(node, typeBinding);
        } else if (node instanceof SimpleName) {
          SimpleName simpleName = (SimpleName) node;
          if (simpleName.resolveBinding().getKind() == IBinding.TYPE
              && node.getLocationInParent() == MethodInvocation.EXPRESSION_PROPERTY) {
            ITypeBinding typeBinding = simpleName.resolveTypeBinding();
            checkNode(node, typeBinding);
          }
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.SimpleName.resolveTypeBinding()

    return name.resolveBinding();
  }

  public static ITypeBinding getTypeBinding(Name node) {
    SimpleName name = getPrefix(node);
    return name.resolveTypeBinding();
  }
 
  public static boolean contains(String[] arr, String name) {
    for(int i=0; i< arr.length; i++){
      if (arr[i].equals(name))
View Full Code Here

Examples of org.eclipse.jdt.core.dom.SuperFieldAccess.resolveTypeBinding()

      final IJavaElement elem = superFieldAccess.resolveFieldBinding()
          .getJavaElement();
      if (elem.isReadOnly() || superFieldAccess.resolveBoxing())
        throw new DefinitelyNotEnumerizableException(
            Messages.ASTNodeProcessor_SourceNotPresent, node);
      if (superFieldAccess.resolveTypeBinding().isEqualTo(
          node.getAST().resolveWellKnownType("java.lang.Object"))) //$NON-NLS-1$
        throw new NonEnumerizableASTException(Messages.ASTNodeProcessor_IllegalArrayUpcast,
            superFieldAccess);
      this.found.add(elem);
      break;
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.ClassDeclaration.resolveTypeBinding()

    String str = "<?php class A {} ?>";
    Program program = createAndParse(str);

    ClassDeclaration classDeclaration = (ClassDeclaration) program
        .statements().get(0);
    ITypeBinding binding = classDeclaration.resolveTypeBinding();

    Assert.assertNotNull(binding);
    Assert.assertTrue(binding.getName().equals("A"));
    Assert.assertTrue(binding.getKind() == IBinding.TYPE);
    Assert.assertTrue(binding.isClass());
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.Expression.resolveTypeBinding()

    // locate the expression to test
    int indexOf = locateElement(content, fromIndex);
    Expression expr = (Expression) program.getElementAt(indexOf);

    // resolve binding of the expression
    ITypeBinding type = expr.resolveTypeBinding();
    return type;
  }

  /**
   * Get the ITypeBinding for the marked content in he given string. Same as
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.InfixExpression.resolveTypeBinding()

        .statements().get(0);
    Assignment assignment = (Assignment) statement.getExpression();
    InfixExpression infixExpression = (InfixExpression) assignment
        .getRightHandSide();

    ITypeBinding expressionBinding = infixExpression.resolveTypeBinding();

    Assert.assertTrue(expressionBinding.getKind() == IBinding.TYPE);
    // TODO
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.InterfaceDeclaration.resolveTypeBinding()

    String str = "<?php interface A {} ?>";
    Program program = createAndParse(str);

    InterfaceDeclaration interfaceDeclaration = (InterfaceDeclaration) program
        .statements().get(0);
    ITypeBinding binding = interfaceDeclaration.resolveTypeBinding();

    Assert.assertNotNull(binding);
    Assert.assertTrue(binding.getName().equals("A"));
    Assert.assertTrue(binding.getKind() == IBinding.TYPE);
    Assert.assertTrue(binding.isInterface());
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.