sun.jvm.hotspot.ui.tree.CTypeTreeNodeAdapter Java Examples

The following examples show how to use sun.jvm.hotspot.ui.tree.CTypeTreeNodeAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommandProcessor.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #2
Source File: CommandProcessor.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}
 
Example #3
Source File: CommandProcessor.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #4
Source File: CommandProcessor.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}
 
Example #5
Source File: CommandProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #6
Source File: CommandProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}
 
Example #7
Source File: CommandProcessor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #8
Source File: CommandProcessor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}
 
Example #9
Source File: CommandProcessor.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #10
Source File: CommandProcessor.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}
 
Example #11
Source File: CommandProcessor.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #12
Source File: CommandProcessor.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}
 
Example #13
Source File: CommandProcessor.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #14
Source File: CommandProcessor.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}
 
Example #15
Source File: CommandProcessor.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() != 2) {
        usage();
    } else {
        Type type = agent.getTypeDataBase().lookupType(t.nextToken());
        Address a = VM.getVM().getDebugger().parseAddress(t.nextToken());
        CTypeTreeNodeAdapter node = new CTypeTreeNodeAdapter(a, type, null);

        out.println("pointer to " + type + " @ " + a +
                    " (size = " + type.getSize() + ")");
        printNode(node);
    }
}
 
Example #16
Source File: CommandProcessor.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void doit(Tokens t) {
    if (t.countTokens() > 1) {
        usage();
    } else {
        if (t.countTokens() == 0) {
            out.println("All known static fields");
            printNode(new CTypeTreeNodeAdapter(agent.getTypeDataBase().getTypes()));
        } else {
            Type type = agent.getTypeDataBase().lookupType(t.nextToken());
            out.println("Static fields of " + type.getName());
            printNode(new CTypeTreeNodeAdapter(type));
        }
    }
}