Example usage for org.aspectj.asm.internal ProgramElement getBytecodeSignature

List of usage examples for org.aspectj.asm.internal ProgramElement getBytecodeSignature

Introduction

In this page you can find the example usage for org.aspectj.asm.internal ProgramElement getBytecodeSignature.

Prototype

public String getBytecodeSignature() 

Source Link

Usage

From source file:org.caesarj.compiler.asm.StructureModelDump.java

License:Open Source License

/**
 * Print the node and advance the depth/*from   ww  w.  j  a va  2s.  com*/
 */
public void preProcess(IProgramElement node) {

    // Print the ident
    for (int i = 0; i < depth; i++) {
        out.print("..");
    }
    depth++;

    // Print the node
    if (node instanceof LinkNode) {
        LinkNode linkNode = (LinkNode) node;
        this.out.print(" ->> ");
        printNodeHeader(this.out, linkNode);
        this.out.println();

    } else if (node instanceof CaesarProgramElement) {
        ProgramElement peNode = (CaesarProgramElement) node;
        printNodeHeader(this.out, node);
        this.out.print(" {" + peNode.getHandleIdentifier() + "}");
        this.out.println();

    } else if (node instanceof ProgramElement) {
        ProgramElement peNode = (ProgramElement) node;
        printNodeHeader(this.out, node);
        this.out.print(" '" + peNode.getBytecodeName() + "' '" + peNode.getBytecodeSignature() //$NON-NLS-1$//$NON-NLS-2$
                + peNode.getAccessibility() + "'"); //$NON-NLS-1$

        this.out.println();

        /*
        List relations = peNode.getRelations();
        if (relations.size() > 0) {
           for (Iterator it = relations.iterator(); it.hasNext();) {
              print(indentArg + "++", (IProgramElement) it.next());
           }
        }*/
    } else {
        this.out.println();
    }
}