Package org.aspectj.asm.internal

Examples of org.aspectj.asm.internal.ProgramElement.addChild()


    }
    String fileName = sourceFilePath.substring(lastSlash + 1);
    IProgramElement fileNode = new ProgramElement(asm, fileName, IProgramElement.Kind.FILE_JAVA, new SourceLocation(new File(
        sourceFilePath), 1, 1), 0, null, null);
    // fileNode.setSourceLocation();
    fileNode.addChild(IHierarchy.NO_STRUCTURE);
    return fileNode;
  }

  private static boolean isBinaryAspect(ResolvedType aspect) {
    return aspect.getBinaryPath() != null;
View Full Code Here


                IProgramElement.Kind.IMPORT_REFERENCE, makeLocation(importRef), 0, null, null);
            ceNode.setSourceSignature(genSourceSignature(importRef));
            // Add Element to Imports of Current Class
            ProgramElement imports = getImportReferencesRoot();// (ProgramElement) ((IProgramElement)
            // stack.peek()).getChildren().get(0);
            imports.addChild(0, ceNode);
          }
        }
      }
    }
View Full Code Here

      packageSourceDeclaration.append(packageString);
      packageSourceDeclaration.append(";");
      packageDeclaration.setSourceSignature(packageSourceDeclaration.toString());
      stack.pop();
      ProgramElement containingTypeElement = (ProgramElement) stack.peek();
      containingTypeElement.addChild(0, packageDeclaration);
      packageDecl = null;
    } else {
      stack.pop();
    }
  }
View Full Code Here

      // create Source signature for import
      peNode.setSourceSignature(genSourceSignature(importRef));

      IProgramElement containingTypeElement = (IProgramElement) stack.peek();
      ProgramElement imports = getImportReferencesRoot();
      imports.addChild(0, peNode);
      stack.push(peNode);
    }
    return true;
  }
View Full Code Here

    }
    String fileName = sourceFilePath.substring(lastSlash + 1);
    IProgramElement fileNode = new ProgramElement(asm, fileName, IProgramElement.Kind.FILE_JAVA, new SourceLocation(new File(
        sourceFilePath), 1, 1), 0, null, null);
    // fileNode.setSourceLocation();
    fileNode.addChild(IHierarchy.NO_STRUCTURE);
    return fileNode;
  }

  private static boolean isBinaryAspect(ResolvedType aspect) {
    return aspect.getBinaryPath() != null;
View Full Code Here

    }
    String fileName = sourceFilePath.substring(lastSlash + 1);
    IProgramElement fileNode = new ProgramElement(asm, fileName, IProgramElement.Kind.FILE_JAVA, new SourceLocation(new File(
        sourceFilePath), 1, 1), 0, null, null);
    // fileNode.setSourceLocation();
    fileNode.addChild(IHierarchy.NO_STRUCTURE);
    return fileNode;
  }

  private static boolean isBinaryAspect(ResolvedType aspect) {
    return aspect.getBinaryPath() != null;
View Full Code Here

        0,
        "",
        new ArrayList())
     
      ProgramElement imports = (ProgramElement)((ProgramElement)stack.peek()).getChildren().get(0);
      imports.addChild(0, peNode);
      stack.push(peNode);
    }
    return true;  
  }
  public void endVisit(ImportReference importRef, CompilationUnitScope scope) {
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.