Package org.eclipse.jdt.core.dom

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


    CompilationUnit cu = (CompilationUnit) parser.createAST(null);
//    List types = cu.structuralPropertiesForType();
    for(Object o:cu.types()){
      AbstractTypeDeclaration dec = (AbstractTypeDeclaration) o;
      List bodyDeclarations = dec.bodyDeclarations();
      assertNotNull(dec.resolveBinding());
      for(Object body:bodyDeclarations){
        MethodDeclaration methodDec = (MethodDeclaration) body;
        IMethodBinding binding = methodDec.resolveBinding();
        assertNotNull(binding);
        ASTNode node = cu.findDeclaringNode(binding);
View Full Code Here


        break;
      }
      node = node.getParent();
    }
    if (type != null) {
      ITypeBinding binding = type.resolveBinding();
      if (binding != null) {
        return binding.getBinaryName();
      }
    }
    return computeTypeName0(node);
View Full Code Here

        return String.valueOf(buffer);
      }
      default: {
        if (node instanceof AbstractTypeDeclaration) {
          AbstractTypeDeclaration typeDeclaration = (AbstractTypeDeclaration) node;
          ITypeBinding binding = typeDeclaration.resolveBinding();
          if (binding != null) {
            return binding.getBinaryName();
          }
          if (typeDeclaration.isPackageMemberTypeDeclaration()) {
            buffer.insert(0, typeDeclaration.getName()
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.