Examples of resolveTypeBinding()


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

      while (iterator.hasNext()) {
        IExtendedModifier modifier = (IExtendedModifier) iterator.next();
        if (modifier.isAnnotation()) {
          Annotation annotation = (Annotation) modifier;
          if (cls.getCanonicalName().equals(annotation.resolveTypeBinding().getQualifiedName())) {
            iterator.remove();
          }
        }
      }
View Full Code Here

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

    Assert.assertTrue(instr instanceof NewObjectInstruction);
    NewObjectInstruction newobj = (NewObjectInstruction) instr;
   
    Assert.assertFalse(newobj.isAnonClassType());
    Assert.assertNotNull(newobj.resolveInstantiatedType());
    Assert.assertEquals(instance.resolveTypeBinding(), newobj.resolveInstantiatedType());
   
    Assert.assertFalse(newobj.hasOuterObjectSpecifier());
    Assert.assertNull(newobj.getOuterObjectSpecifierOperand());
  }
 
View Full Code Here

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

    Assert.assertTrue(instr instanceof NewObjectInstruction);
    NewObjectInstruction newobj = (NewObjectInstruction) instr;
   
    Assert.assertFalse(newobj.isAnonClassType());
    Assert.assertNotNull(newobj.resolveInstantiatedType());
    Assert.assertEquals(instance.resolveTypeBinding(), newobj.resolveInstantiatedType());
   
    Assert.assertFalse(newobj.hasOuterObjectSpecifier());
    Assert.assertNull(newobj.getOuterObjectSpecifierOperand());
  }
 
View Full Code Here

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

    Assert.assertTrue(instr instanceof NewObjectInstruction);
    NewObjectInstruction newobj = (NewObjectInstruction) instr;
   
    Assert.assertFalse(newobj.isAnonClassType());
    Assert.assertNotNull(newobj.resolveInstantiatedType());
    Assert.assertEquals(instance.resolveTypeBinding(), newobj.resolveInstantiatedType());
   
    Assert.assertTrue(newobj.hasOuterObjectSpecifier());
    Assert.assertNotNull(newobj.getOuterObjectSpecifierOperand());
    Assert.assertEquals(tac.thisVariable(), newobj.getOuterObjectSpecifierOperand());
  }
View Full Code Here

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

    Assert.assertTrue(instr instanceof NewObjectInstruction);
    NewObjectInstruction newobj = (NewObjectInstruction) instr;
   
    Assert.assertFalse(newobj.isAnonClassType());
    Assert.assertNotNull(newobj.resolveInstantiatedType());
    Assert.assertEquals(instance.resolveTypeBinding(), newobj.resolveInstantiatedType());
   
    Assert.assertTrue(newobj.hasOuterObjectSpecifier());
    Assert.assertNotNull(newobj.getOuterObjectSpecifierOperand());
    Assert.assertEquals(tac.variable(instance.getExpression()), newobj.getOuterObjectSpecifierOperand());
  }
View Full Code Here

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

    Assert.assertTrue(instr instanceof NewObjectInstruction);
    NewObjectInstruction newobj = (NewObjectInstruction) instr;
   
    Assert.assertFalse(newobj.isAnonClassType());
    Assert.assertNotNull(newobj.resolveInstantiatedType());
    Assert.assertEquals(instance.resolveTypeBinding(), newobj.resolveInstantiatedType());
   
    Assert.assertFalse(newobj.hasOuterObjectSpecifier());
    Assert.assertNull(newobj.getOuterObjectSpecifierOperand());
  }
 
View Full Code Here

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

    Assert.assertTrue(instr instanceof NewObjectInstruction);
    NewObjectInstruction newobj = (NewObjectInstruction) instr;
   
    Assert.assertFalse(newobj.isAnonClassType());
    Assert.assertNotNull(newobj.resolveInstantiatedType());
    Assert.assertEquals(instance.resolveTypeBinding(), newobj.resolveInstantiatedType());
   
    Assert.assertFalse(newobj.hasOuterObjectSpecifier());
    Assert.assertNull(newobj.getOuterObjectSpecifierOperand());
  }
 
View Full Code Here

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

    Assert.assertTrue(instr instanceof NewObjectInstruction);
    NewObjectInstruction newobj = (NewObjectInstruction) instr;
   
    Assert.assertTrue(newobj.isAnonClassType());
    Assert.assertNotNull(newobj.resolveInstantiatedType());
    Assert.assertEquals(instance.resolveTypeBinding(), newobj.resolveInstantiatedType());
   
    Assert.assertFalse(newobj.hasOuterObjectSpecifier());
    Assert.assertNull(newobj.getOuterObjectSpecifierOperand());
  }
 
View Full Code Here

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

     */
    private void addAnonymousClass(UnresolvedMethodInvocation unresolvedMethodInvocation, FamixMethod calleeMethod) {
        ClassInstanceCreation classInstanceCreation = (ClassInstanceCreation) unresolvedMethodInvocation.getASTNode();
        // determine the anonymous class from the string
        FamixClass lDeclaringClass = null;
        ITypeBinding lTypeBinding = classInstanceCreation.resolveTypeBinding();
        if (lTypeBinding != null) {
            lDeclaringClass = unresolvedMethodInvocation.getInvocationHandler().getClass(lTypeBinding, null, true);
        } else {
            String lClassID = calleeMethod.getUniqueName();
            lClassID = lClassID.substring(0, lClassID.indexOf(AbstractFamixEntity.CONSTRUCTOR_PREFIX) - 1);
View Full Code Here

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

    if (isNullLiteral(initializer))
      return false;

    if (!vb.getType().getErasure()
        .isEqualTo(initializer.resolveTypeBinding().getErasure())) {
      return false;
    }

    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.