Class Utils
java.lang.Object
com.ibm.jvm.dtfjview.commands.helpers.Utils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageAddressSpace
_extractAddressSpace
(Image loadedImage) static File
absPath
(Properties properties, String path) static String
concatArgsFromStack
(Stack<String> args) constructStackFromStringArray
(String[] argsArray) static Iterator
getAddressSpaceSectionInfo
(Image loadedImage) static JavaClass
getClassGivenAddress
(long address, JavaRuntime jr) static JavaClass[]
getClassGivenName
(String className, JavaRuntime jr, PrintStream out) static String
static String
static String
static String
getMethodSignatureName
(String signature) static JavaThread
getParkBlockerOwner
(JavaObject blocker, JavaRuntime r) static JavaObject
getParkBlockerOwnerObject
(JavaObject blocker, JavaRuntime r) static String
getPrintable
(char c) static String
static String
getPrintableWithQuotes
(char c) static String
getReturnValueName
(String signature) static Iterator
getRuntimes
(Image loadedImage) static String
getSignatureName
(String signature) static String
getThreadNameFromObject
(JavaObject lockOwnerObj, JavaRuntime rt, PrintStream out) static String
getVal
(JavaObject jo, JavaField jf) static String
static String
static boolean
isNull
(JavaObject jo) static Long
longFromString
(String value) static Long
longFromStringWithPrefix
(String value) static String
padWithSpaces
(String unpadded, int desiredLength) static String
padWithZeroes
(String unpadded, int desiredLength) static String
prePadWithSpaces
(String unpadded, int desiredLength) static String
toFixedWidthHex
(byte b) static String
toFixedWidthHex
(int i) static String
toFixedWidthHex
(long l) static String
toFixedWidthHex
(short s) static String
toHex
(byte b) static String
toHex
(int i) static String
toHex
(long l) static String
toHex
(short s) static String
Format 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
-