Examples of resolveBinding()


Examples of org.eclipse.jdt.core.dom.SimpleType.resolveBinding()

      Iterator iter = typeDeclaration.superInterfaceTypes().iterator();
      while (iter.hasNext()) {
        Object obj = iter.next();
        if (obj instanceof SimpleType) {
          SimpleType type = (SimpleType) obj;
          String qualifiedName = type.resolveBinding().getQualifiedName();

          if (qualifiedName.equals(interfaceToRemove)) {
            iter.remove();
          }
        }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.SingleVariableDeclaration.resolveBinding()

   
    AnnotationSummary summary = annoDB.getSummaryForMethod(method.resolveBinding());
   
    for (int ndx = 0; ndx < method.parameters().size(); ndx++) {
      SingleVariableDeclaration decl = (SingleVariableDeclaration) method.parameters().get(ndx);
      Variable paramVar = getAnalysisContext().getSourceVariable(decl.resolveBinding());
     
      if (summary.getParameter(ndx, BranchingNPEAnalysis.NON_NULL_ANNO) != null) //is this parameter annotated with @Nonnull?
        def.put(paramVar, NullLatticeElement.NOT_NULL);
    }
   
View Full Code Here

Examples of org.eclipse.jdt.core.dom.SingleVariableDeclaration.resolveBinding()

   
    AnnotationSummary summary = annoDB.getSummaryForMethod(method.resolveBinding());
   
    for (int ndx = 0; ndx < method.parameters().size(); ndx++) {
      SingleVariableDeclaration decl = (SingleVariableDeclaration) method.parameters().get(ndx);
      Variable paramVar = getAnalysisContext().getSourceVariable(decl.resolveBinding());
     
      if (summary.getParameter(ndx, AnnotatedNPEAnalysis.NON_NULL_ANNO) != null) //is this parameter annotated with @Nonnull?
        def.put(paramVar, NullLatticeElement.NOT_NULL);
    }
   
View Full Code Here

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

          new EclipseSuperFieldAccess(target, eclipseVariableQuery),
          eclipseVariableQuery);
    }
    if(targetNode instanceof QualifiedName) {
      QualifiedName target = (QualifiedName) targetNode;
      IBinding binding = target.resolveBinding();
      if(binding instanceof IVariableBinding) {
        IVariableBinding vb = (IVariableBinding) binding;
        if(vb.isField()) {
          return new StoreFieldInstructionImpl(
              node,
View Full Code Here

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

        }
      }
    }
    if(targetNode instanceof SimpleName) {
      SimpleName target = (SimpleName) targetNode;
      IBinding binding = target.resolveBinding();
      if(binding instanceof IVariableBinding) {
        IVariableBinding vb = (IVariableBinding) binding;
        if(vb.isField()) {
          // implicit field access on this
          return new StoreFieldInstructionImpl(
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Type.resolveBinding()

      List<Type> typeArgs = paramType.typeArguments();

      if( !typeArgs.isEmpty() )
      {
        Type arg1 = typeArgs.get(0);
        declaringType = arg1.resolveBinding();
      }
    }
    return declaringType;
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.TypeDeclaration.resolveBinding()

      declaringType = ASTUtil.getFirstTypeParameter( (AnonymousClassDeclaration) node);
    }
    else if( node instanceof TypeDeclaration )
    {
      TypeDeclaration typeDec = (TypeDeclaration) node;
      ITypeBinding curType = typeDec.resolveBinding();

      if( hasMockClass(curType) )
      {
        declaringType = findRealClassType(curType);
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.VariableDeclaration.resolveBinding()

        return resolveBinding(((Type) node).resolveBinding());
      } else if (node instanceof TypeParameter) {
        return resolveBinding(((TypeParameter) node).resolveBinding());
      } else if (node instanceof VariableDeclaration) {
      VariableDeclaration n = (VariableDeclaration) node;
        ISourceLocation result = resolveBinding(n.resolveBinding());
        // Have to move towards parent to make the binding unique
        if (result.getScheme() == "unresolved") {
          result = resolveBinding(n.getParent(), n);
        }
        return result;
View Full Code Here

Examples of org.eclipse.jdt.core.dom.VariableDeclaration.resolveBinding()

        Assert.assertEquals("Statement: " + s, t, ((CopyInstruction) seq[1]).getOperand());
      }
      else
        Assert.fail("Statement has unexpected translation: " + s);
     
      Assert.assertEquals("Statement: " + s, tac.sourceVariable(d.resolveBinding()), declared);
    }
   
  }
 
  private static final String INITIALIZERS =
View Full Code Here

Examples of org.eclipse.jdt.core.dom.VariableDeclarationFragment.resolveBinding()

  /** (non-Javadoc)
   * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.VariableDeclarationFragment)
   */
  public boolean visit(VariableDeclarationFragment node) {
    VariableDeclarationFragment vdf = (VariableDeclarationFragment) node;
    IVariableBinding binding = vdf.resolveBinding();
    localVariables.add(new VarProposal(binding, "Local"));
    return true;
  }

  /**
 
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.