- java.lang.Object
- 
- com.ibm.jvm.dtfjview.commands.helpers.Utils
 
- 
 public class Utils extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringbyteToAsciistatic StringbyteToEbcdicstatic StringCURRENT_MEM_ADDRESSstatic StringCURRENT_NUM_BYTES_TO_PRINTstatic StringFIND_ATTRIBUTESstatic StringREVERSE_SORT_FLAGstatic StringRootCommand_OBJECTstatic StringSORT_BY_ADDRESS_FLAGstatic StringSORT_BY_COUNT_FLAGstatic StringSORT_BY_NAME_FLAGstatic StringSORT_BY_SIZE_FLAGstatic StringVERBOSE_FLAG
 - 
Constructor SummaryConstructors Constructor Description Utils()
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
byteToAsciipublic static final String byteToAscii - See Also:
- Constant Field Values
 
 - 
byteToEbcdicpublic static final String byteToEbcdic - See Also:
- Constant Field Values
 
 - 
CURRENT_MEM_ADDRESSpublic static final String CURRENT_MEM_ADDRESS - See Also:
- Constant Field Values
 
 - 
CURRENT_NUM_BYTES_TO_PRINTpublic static final String CURRENT_NUM_BYTES_TO_PRINT - See Also:
- Constant Field Values
 
 - 
RootCommand_OBJECTpublic static final String RootCommand_OBJECT - See Also:
- Constant Field Values
 
 - 
FIND_ATTRIBUTESpublic static final String FIND_ATTRIBUTES - See Also:
- Constant Field Values
 
 - 
SORT_BY_SIZE_FLAGpublic static final String SORT_BY_SIZE_FLAG - See Also:
- Constant Field Values
 
 - 
SORT_BY_NAME_FLAGpublic static final String SORT_BY_NAME_FLAG - See Also:
- Constant Field Values
 
 - 
SORT_BY_ADDRESS_FLAGpublic static final String SORT_BY_ADDRESS_FLAG - See Also:
- Constant Field Values
 
 - 
SORT_BY_COUNT_FLAGpublic static final String SORT_BY_COUNT_FLAG - See Also:
- Constant Field Values
 
 - 
REVERSE_SORT_FLAGpublic static final String REVERSE_SORT_FLAG - See Also:
- Constant Field Values
 
 - 
VERBOSE_FLAGpublic static final String VERBOSE_FLAG - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
toHexpublic static String toHex(ImagePointer p) 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
 
 - 
toHexpublic static String toHex(long l) 
 - 
toHexpublic static String toHex(int i) 
 - 
toHexpublic static String toHex(short s) 
 - 
toHexpublic static String toHex(byte b) 
 - 
toFixedWidthHexpublic static String toFixedWidthHex(long l) 
 - 
toFixedWidthHexpublic static String toFixedWidthHex(int i) 
 - 
toFixedWidthHexpublic static String toFixedWidthHex(short s) 
 - 
toFixedWidthHexpublic static String toFixedWidthHex(byte b) 
 - 
constructStackFromStringArraypublic static Stack<String> constructStackFromStringArray(String[] argsArray) 
 - 
_extractAddressSpacepublic static ImageAddressSpace _extractAddressSpace(Image loadedImage) 
 - 
absPathpublic static File absPath(Properties properties, String path) 
 - 
getValpublic static String getVal(JavaObject jo, JavaField jf) 
 - 
getPrintablepublic static String getPrintable(char c) 
 - 
getPrintableWithQuotespublic static String getPrintableWithQuotes(char c) 
 - 
getFieldModifierStringpublic static String getFieldModifierString(JavaField jf) throws CorruptDataException - Throws:
- CorruptDataException
 
 - 
getMethodModifierStringpublic static String getMethodModifierString(JavaMethod jm) throws CorruptDataException - Throws:
- CorruptDataException
 
 - 
getClassModifierStringpublic static String getClassModifierString(JavaClass jc) throws CorruptDataException - Throws:
- CorruptDataException
 
 - 
isNullpublic static boolean isNull(JavaObject jo) 
 - 
getClassGivenNamepublic static JavaClass[] getClassGivenName(String className, JavaRuntime jr, PrintStream out) 
 - 
getClassGivenAddresspublic static JavaClass getClassGivenAddress(long address, JavaRuntime jr) 
 - 
getParkBlockerOwnerpublic static JavaThread getParkBlockerOwner(JavaObject blocker, JavaRuntime r) throws CorruptDataException, MemoryAccessException 
 - 
getParkBlockerOwnerObjectpublic static JavaObject getParkBlockerOwnerObject(JavaObject blocker, JavaRuntime r) throws CorruptDataException, MemoryAccessException 
 - 
getThreadNameFromObjectpublic static String getThreadNameFromObject(JavaObject lockOwnerObj, JavaRuntime rt, PrintStream out) throws CorruptDataException, MemoryAccessException 
 
- 
 
-