APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.jvm.hotspot

public Class CommandProcessor

extends Object
Class Inheritance
Imports
java.io.BufferedOutputStream, .BufferedReader, .ByteArrayOutputStream, .File, .FileInputStream, .FileOutputStream, .IOException, .InputStreamReader, .PrintStream, java.util.ArrayDeque, .ArrayList, .Arrays, .Comparator, .HashMap, .HashSet, .Iterator, .Objects, java.util.regex.Matcher, .Pattern, sun.jvm.hotspot.code.CodeBlob, .CodeCacheVisitor, .NMethod, sun.jvm.hotspot.debugger.Address, .OopHandle, sun.jvm.hotspot.classfile.ClassLoaderDataGraph, sun.jvm.hotspot.memory.FileMapInfo, .Universe, sun.jvm.hotspot.gc.shared.CollectedHeap, sun.jvm.hotspot.gc.g1.G1CollectedHeap, sun.jvm.hotspot.oops.DefaultHeapVisitor, .HeapVisitor, .InstanceKlass, .Klass, .Metadata, .Method, .Oop, .RawHeapVisitor, .Symbol, .UnknownOopException, sun.jvm.hotspot.runtime.CompiledVFrame, .JavaThread, .JavaVFrame, .Threads, .VM, sun.jvm.hotspot.tools.ObjectHistogram, .JMap, .PMap, .PStack, .StackTrace, .SysPropsDumper, sun.jvm.hotspot.tools.jcore.ClassDump, .ClassFilter, .ClassWriter, sun.jvm.hotspot.types.CIntegerType, .Field, .Type, sun.jvm.hotspot.types.basic.BasicType, sun.jvm.hotspot.ui.classbrowser.HTMLGenerator, sun.jvm.hotspot.ui.tree.CTypeTreeNodeAdapter, .OopTreeNodeAdapter, .SimpleTreeNode, sun.jvm.hotspot.utilities.AddressOps, .Assert, .HeapProgressThunk, .LivenessPathElement, .MethodArray, .PointerFinder, .PointerLocation, .ReversePtrs, .ReversePtrsAnalysis, .RobustOopDeterminator, .SystemDictionaryHelper

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
public static class
pack-priv abstract class
public abstract static class
public static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private HotSpotAgent
private final CommandProcessor.Command[]
private HashMap<String, CommandProcessor.Command>
private CommandProcessor.DebuggerInterface
private boolean
private PrintStream
private ArrayList<String>
pack-priv static Pattern
private BufferedReader
private PrintStream
pack-priv volatile boolean
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
dumpFields(Type type, boolean allowStatic)

pack-priv void
dumpType(Type type)

public void
executeCommand(String ln, boolean putInHistory)

pack-priv void
pack-priv String
fillHexString(Address a, int width)

private CommandProcessor.Command
pack-priv Address
lookup(String symbol)

pack-priv Address
pack-priv CommandProcessor.AddressRange
parseAddressRange(String arg, int formatSize)

private int
private void
private void
public void
pack-priv void
public void
run(boolean prompt)

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

agentback to summary
private HotSpotAgent agent
commandListback to summary
private final CommandProcessor.Command[] commandList
commandsback to summary
private HashMap<String, CommandProcessor.Command> commands
debuggerback to summary
private CommandProcessor.DebuggerInterface debugger
doEchoback to summary
private boolean doEcho
errback to summary
private PrintStream err
historyback to summary
private ArrayList<String> history
historyPatternback to summary
pack-priv static Pattern historyPattern
inback to summary
private BufferedReader in
outback to summary
private PrintStream out
quitback to summary
pack-priv volatile boolean quit
verboseExceptionsback to summary
private boolean verboseExceptions

Constructor Detail

CommandProcessorback to summary
public CommandProcessor(CommandProcessor.DebuggerInterface debugger, BufferedReader in, PrintStream out, PrintStream err)

Method Detail

dumpFieldsback to summary
pack-priv void dumpFields(Type type)
dumpFieldsback to summary
pack-priv void dumpFields(Type type, boolean allowStatic)
dumpTypeback to summary
pack-priv void dumpType(Type type)
executeCommandback to summary
public void executeCommand(String ln, boolean putInHistory)
executeCommandback to summary
pack-priv void executeCommand(CommandProcessor.Tokens args)
fillHexStringback to summary
pack-priv String fillHexString(Address a, int width)
findCommandback to summary
private CommandProcessor.Command findCommand(String key)
lookupback to summary
pack-priv Address lookup(String symbol)
parseAddressback to summary
pack-priv Address parseAddress(String addr)
parseAddressRangeback to summary
pack-priv CommandProcessor.AddressRange parseAddressRange(String arg, int formatSize)
parseHeapDumpCompressionLevelback to summary
private int parseHeapDumpCompressionLevel(String option)
postAttachback to summary
private void postAttach()
preAttachback to summary
private void preAttach()
printPromptback to summary
public void printPrompt()
quoteback to summary
pack-priv void quote(String s)
runback to summary
public void run(boolean prompt)
setErrback to summary
public void setErr(PrintStream e)
setOutputback to summary
public void setOutput(PrintStream o)
sun.jvm.hotspot back to summary

pack-priv Class CommandProcessor.AddressRange

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Address
private Address

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Address
pack-priv Address
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endback to summary
private Address end
startback to summary
private Address start

Constructor Detail

AddressRangeback to summary
pack-priv AddressRange(Address start, Address end)

Method Detail

getEndback to summary
pack-priv Address getEnd()
getStartback to summary
pack-priv Address getStart()
sun.jvm.hotspot back to summary

public Class CommandProcessor.BootFilter

extends Object
implements ClassFilter
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.tools.jcore.ClassFilter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BootFilterback to summary
public BootFilter()

Method Detail

canIncludeback to summary
public boolean canInclude(InstanceKlass kls)

Implements sun.jvm.hotspot.tools.jcore.ClassFilter.canInclude.

sun.jvm.hotspot back to summary

pack-priv abstract Class CommandProcessor.Command

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final boolean
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv
Command(String n, String u, boolean ok)

pack-priv
Command(String n, boolean ok)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract void
pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
pack-priv final String name
okIfDisconnectedback to summary
pack-priv final boolean okIfDisconnected
usageback to summary
pack-priv final String usage

Constructor Detail

Commandback to summary
pack-priv Command(String n, String u, boolean ok)
Commandback to summary
pack-priv Command(String n, boolean ok)

Method Detail

doitback to summary
pack-priv abstract void doit(CommandProcessor.Tokens t)
printNodeback to summary
pack-priv void printNode(SimpleTreeNode node)
usageback to summary
pack-priv void usage()
sun.jvm.hotspot back to summary

public abstract Class CommandProcessor.DebuggerInterface

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
attach(int pid)

public abstract void
attach(String java, String core)

public abstract void
attach(String debugServerName)

public abstract void
public abstract HotSpotAgent
public abstract boolean
public abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DebuggerInterfaceback to summary
public DebuggerInterface()

Method Detail

attachback to summary
public abstract void attach(int pid)
attachback to summary
public abstract void attach(String java, String core)
attachback to summary
public abstract void attach(String debugServerName)
detachback to summary
public abstract void detach()
getAgentback to summary
public abstract HotSpotAgent getAgent()
isAttachedback to summary
public abstract boolean isAttached()
reattachback to summary
public abstract void reattach()
sun.jvm.hotspot back to summary

public Class CommandProcessor.NonBootFilter

extends Object
implements ClassFilter
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.tools.jcore.ClassFilter

Field Summary

Modifier and TypeField and Description
private HashMap<Symbol, InstanceKlass>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

emittedback to summary
private HashMap<Symbol, InstanceKlass> emitted

Constructor Detail

NonBootFilterback to summary
public NonBootFilter()

Method Detail

canIncludeback to summary
public boolean canInclude(InstanceKlass kls)

Implements sun.jvm.hotspot.tools.jcore.ClassFilter.canInclude.

sun.jvm.hotspot back to summary

pack-priv Class CommandProcessor.Tokens

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
i

pack-priv final String
pack-priv int
pack-priv String[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv String
at(int i)

pack-priv int
pack-priv boolean
pack-priv String
join(String sep)

pack-priv String
pack-priv String[]
pack-priv void
trim(int n)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iback to summary
pack-priv int i
inputback to summary
pack-priv final String input
lengthback to summary
pack-priv int length
tokensback to summary
pack-priv String[] tokens

Constructor Detail

Tokensback to summary
pack-priv Tokens(String cmd)

Method Detail

addback to summary
pack-priv void add(String s, ArrayList<String> t)
atback to summary
pack-priv String at(int i)
countTokensback to summary
pack-priv int countTokens()
hasMoreTokensback to summary
pack-priv boolean hasMoreTokens()
joinback to summary
pack-priv String join(String sep)
nextTokenback to summary
pack-priv String nextToken()
splitWhitespaceback to summary
pack-priv String[] splitWhitespace(String cmd)
trimback to summary
pack-priv void trim(int n)