Examples of toSignatureString()


Examples of org.aspectj.asm.IProgramElement.toSignatureString()

      if (decl.getKind().isType()) {
        isSecond = true;
        String fullname = "";
        if (decl.getParent().getKind().equals(IProgramElement.Kind.ASPECT)
            || decl.getParent().getKind().equals(IProgramElement.Kind.CLASS)) {
          fullname += decl.getParent().toSignatureString().concat(".").concat(decl.toSignatureString());
        } else {
          fullname += decl.toSignatureString();
        }
        // only add aspect documentation if we're in the correct
        // file for the given IProgramElement
View Full Code Here

Examples of org.aspectj.asm.IProgramElement.toSignatureString()

        String fullname = "";
        if (decl.getParent().getKind().equals(IProgramElement.Kind.ASPECT)
            || decl.getParent().getKind().equals(IProgramElement.Kind.CLASS)) {
          fullname += decl.getParent().toSignatureString().concat(".").concat(decl.toSignatureString());
        } else {
          fullname += decl.toSignatureString();
        }
        // only add aspect documentation if we're in the correct
        // file for the given IProgramElement
        if (file.getName().indexOf(fullname + ".html") != -1) {
          addAspectDocumentation(decl, fileContents, index);
View Full Code Here

Examples of org.aspectj.asm.IProgramElement.toSignatureString()

      }
      // Change "Class" to "Aspect"
      // moved this here because then can use the IProgramElement.Kind
      // rather than checking to see if there's advice - this fixes
      // the case with an inner aspect not having the title "Aspect"
      if (decl.getKind().equals(IProgramElement.Kind.ASPECT) && file.getName().indexOf(decl.toSignatureString()) != -1) {
        // only want to change "Class" to "Aspect" if we're in the
        // file corresponding to the IProgramElement
        String fullname = "";
        if (decl.getParent().getKind().equals(IProgramElement.Kind.ASPECT)
            || decl.getParent().getKind().equals(IProgramElement.Kind.CLASS)) {
View Full Code Here

Examples of org.aspectj.asm.IProgramElement.toSignatureString()

        // only want to change "Class" to "Aspect" if we're in the
        // file corresponding to the IProgramElement
        String fullname = "";
        if (decl.getParent().getKind().equals(IProgramElement.Kind.ASPECT)
            || decl.getParent().getKind().equals(IProgramElement.Kind.CLASS)) {
          fullname += decl.getParent().toSignatureString().concat(".").concat(decl.toSignatureString());
        } else {
          fullname += decl.toSignatureString();
        }
        if (file.getName().indexOf(fullname + ".html") == -1) {
          // we're still in the file for a parent IPE
View Full Code Here

Examples of org.aspectj.asm.IProgramElement.toSignatureString()

        String fullname = "";
        if (decl.getParent().getKind().equals(IProgramElement.Kind.ASPECT)
            || decl.getParent().getKind().equals(IProgramElement.Kind.CLASS)) {
          fullname += decl.getParent().toSignatureString().concat(".").concat(decl.toSignatureString());
        } else {
          fullname += decl.toSignatureString();
        }
        if (file.getName().indexOf(fullname + ".html") == -1) {
          // we're still in the file for a parent IPE
          continue;
        }
View Full Code Here

Examples of org.aspectj.asm.IProgramElement.toSignatureString()

            fileContents.insert(classStartIndex, aspectLine);
          }
        }
        int secondClassStartIndex = fileContents.toString().indexOf("class <B>");
        if (secondClassStartIndex != -1) {
          String name = decl.toSignatureString();
          int classEndIndex = fileContents.toString().indexOf(name + "</B><DT>");
          if (secondClassStartIndex != -1 && classEndIndex != -1) {
            StringBuffer sb = new StringBuffer(fileContents.toString().substring(secondClassStartIndex, classEndIndex));
            sb.replace(0, 5, "aspect");
            fileContents.delete(secondClassStartIndex, classEndIndex);
View Full Code Here

Examples of org.aspectj.asm.IProgramElement.toSignatureString()

   * @return null if not found
   */
  public IProgramElement findElementForSignature(IProgramElement parent, IProgramElement.Kind kind, String signature) {
    for (Iterator it = parent.getChildren().iterator(); it.hasNext();) {
      IProgramElement node = (IProgramElement) it.next();
      if (node.getKind() == kind && signature.equals(node.toSignatureString())) {
        return node;
      } else {
        IProgramElement childSearch = findElementForSignature(node, kind, signature);
        if (childSearch != null) {
          return childSearch;
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.