Examples of IBinding


Examples of org.eclipse.jdt.core.dom.IBinding

  }

  public TACInstruction create(SimpleName node,
      IEclipseVariableQuery eclipseVariableQuery) {
    // careful with the disambiguation of field accesses
    IBinding binding = node.resolveBinding();
    if(binding instanceof IVariableBinding) {
      IVariableBinding vb = (IVariableBinding) binding;
      if(vb.isField() || vb.isEnumConstant()) {
        if((node.getParent() instanceof QualifiedName) &&
            (((QualifiedName) node.getParent()).getName() == node))
View Full Code Here

Examples of org.eclipse.jdt.core.dom.IBinding

      return variable(((ParenthesizedExpression) astNode).getExpression());
    }
   
    // maybe it's a variable
    if(astNode instanceof Name) {
      IBinding b = ((Name) astNode).resolveBinding();
      return getVariable(b);
    }
    if(astNode instanceof ThisExpression) {
      return getThisVariable((ThisExpression) astNode);
    }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.IBinding

   * @return the binding for the implicit <code>this</code>
   * variable of the given accessed element (method or field).
   */
  private ITypeBinding implicitThisBinding(IBinding accessedElement) {
    boolean isMethod;
    IBinding genericBinding; // generic version of accessedElement to simplify comparison
    if(accessedElement instanceof IMethodBinding) {
      if(((IMethodBinding) accessedElement).isConstructor())
        // constructor is easy because statically bound
        return ((IMethodBinding) accessedElement).getDeclaringClass();
      genericBinding = ((IMethodBinding) accessedElement).getMethodDeclaration();
View Full Code Here

Examples of org.eclipse.jdt.core.dom.IBinding

      return variable(((ParenthesizedExpression) astNode).getExpression());
    }
   
    // maybe it's a variable
    if(astNode instanceof Name) {
      IBinding b = ((Name) astNode).resolveBinding();
      return getVariable(b);
    }
    if(astNode instanceof ThisExpression) {
      return getThisVariable((ThisExpression) astNode);
    }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.IBinding

   * @return the binding for the implicit <code>this</code>
   * variable of the given accessed element (method or field).
   */
  private ITypeBinding implicitThisBinding(IBinding accessedElement) {
    boolean isMethod;
    IBinding genericBinding; // generic version of accessedElement to simplify comparison
    if(accessedElement instanceof IMethodBinding) {
      if(((IMethodBinding) accessedElement).isConstructor())
        // constructor is easy because statically bound
        return ((IMethodBinding) accessedElement).getDeclaringClass();
      genericBinding = ((IMethodBinding) accessedElement).getMethodDeclaration();
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.IBinding

      ExpressionStatement statement = (ExpressionStatement) program
          .statements().get(0);
      Include include = (Include) statement.getExpression();

      IBinding sourceBinding = include.resolveBinding();

      Assert.assertTrue(sourceBinding.getName().equals("myFile.php") == true);
      Assert.assertTrue(sourceBinding.getPHPElement().getElementType() == IModelElement.SOURCE_MODULE);
      Assert.assertTrue(sourceBinding.getKind() == IBinding.INCLUDE);

    } finally {
      myFile.delete(true, new NullProgressMonitor());
    }
  }
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.