java.lang.Object
com.ibm.jvm.dtfjview.commands.helpers.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageAddressSpace_extractAddressSpace(Image loadedImage) static FileabsPath(Properties properties, String path) static StringconcatArgsFromStack(Stack<String> args) constructStackFromStringArray(String[] argsArray) static IteratorgetAddressSpaceSectionInfo(Image loadedImage) static JavaClassgetClassGivenAddress(long address, JavaRuntime jr) static JavaClass[]getClassGivenName(String className, JavaRuntime jr, PrintStream out) static Stringstatic Stringstatic Stringstatic StringgetMethodSignatureName(String signature) static JavaThreadgetParkBlockerOwner(JavaObject blocker, JavaRuntime r) static JavaObjectgetParkBlockerOwnerObject(JavaObject blocker, JavaRuntime r) static StringgetPrintable(char c) static Stringstatic StringgetPrintableWithQuotes(char c) static StringgetReturnValueName(String signature) static IteratorgetRuntimes(Image loadedImage) static StringgetSignatureName(String signature) static StringgetThreadNameFromObject(JavaObject lockOwnerObj, JavaRuntime rt, PrintStream out) static StringgetVal(JavaObject jo, JavaField jf) static Stringstatic Stringstatic booleanisNull(JavaObject jo) static LonglongFromString(String value) static LonglongFromStringWithPrefix(String value) static StringpadWithSpaces(String unpadded, int desiredLength) static StringpadWithZeroes(String unpadded, int desiredLength) static StringprePadWithSpaces(String unpadded, int desiredLength) static StringtoFixedWidthHex(byte b) static StringtoFixedWidthHex(int i) static StringtoFixedWidthHex(long l) static StringtoFixedWidthHex(short s) static StringtoHex(byte b) static StringtoHex(int i) static StringtoHex(long l) static StringtoHex(short s) static StringFormat an ImagePointer for printing.static String
-
Field Details
-
byteToAscii
- See Also:
-
byteToEbcdic
- See Also:
-
CURRENT_MEM_ADDRESS
- See Also:
-
CURRENT_NUM_BYTES_TO_PRINT
- See Also:
-
RootCommand_OBJECT
- See Also:
-
FIND_ATTRIBUTES
- See Also:
-
SORT_BY_SIZE_FLAG
- See Also:
-
SORT_BY_NAME_FLAG
- See Also:
-
SORT_BY_ADDRESS_FLAG
- See Also:
-
SORT_BY_COUNT_FLAG
- See Also:
-
REVERSE_SORT_FLAG
- See Also:
-
VERBOSE_FLAG
- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getRuntimes
-
toHex
Format an ImagePointer for printing. Get the address and format it as a hex string with 0x at the front- Parameters:
p- the ImagePointer- Returns:
- p.getAddress() as a hex string
-
toHex
-
toHex
-
toHex
-
toHex
-
toFixedWidthHex
-
toFixedWidthHex
-
toFixedWidthHex
-
toFixedWidthHex
-
constructStackFromString
-
constructStackFromStringArray
-
concatArgsFromStack
-
_extractAddressSpace
-
longFromString
-
longFromStringWithPrefix
-
getSignatureName
-
getMethodSignatureName
-
getReturnValueName
-
toString
-
absPath
-
getVal
-
getVal
-
getVal
-
getPrintable
-
getPrintableWithQuotes
-
getPrintable
-
padWithZeroes
-
getAddressSpaceSectionInfo
-
getFieldModifierString
- Throws:
CorruptDataException
-
getMethodModifierString
- Throws:
CorruptDataException
-
getClassModifierString
- Throws:
CorruptDataException
-
isNull
-
padWithSpaces
-
prePadWithSpaces
-
getClassGivenName
-
getClassGivenAddress
-
getParkBlockerOwner
public static JavaThread getParkBlockerOwner(JavaObject blocker, JavaRuntime r) throws CorruptDataException, MemoryAccessException -
getParkBlockerOwnerObject
public static JavaObject getParkBlockerOwnerObject(JavaObject blocker, JavaRuntime r) throws CorruptDataException, MemoryAccessException -
getThreadNameFromObject
public static String getThreadNameFromObject(JavaObject lockOwnerObj, JavaRuntime rt, PrintStream out) throws CorruptDataException, MemoryAccessException
-