org.eclipse.ptp.debug.core
Class PDebugUtils
java.lang.Object
org.eclipse.ptp.debug.core.PDebugUtils
public class PDebugUtils
- extends Object
|
Field Summary |
static boolean |
DEBUG
|
|
Method Summary |
static char |
bytesToChar(byte[] bytes)
|
static char |
charFromByte(byte value)
|
static byte |
charToByte(char ch)
|
static void |
error(org.eclipse.core.runtime.IStatus status,
Object source)
|
static int |
getAddressSize()
|
static char[] |
getByteText(byte b)
|
static List<org.eclipse.core.resources.IProject> |
getReferencedProjects(org.eclipse.core.resources.IProject project)
|
static void |
info(org.eclipse.core.runtime.IStatus status,
Object source)
|
static boolean |
isReferencedProject(org.eclipse.core.resources.IProject parent,
org.eclipse.core.resources.IProject project)
|
static String |
prependString(String text,
int length,
char ch)
|
static void |
println(String msg)
|
static boolean |
question(org.eclipse.core.runtime.IStatus status,
Object source)
|
static String |
serializeDocument(Document doc)
Serializes a XML document into a string - encoded in UTF8 format, with
platform line separators. |
static byte |
textToByte(char[] text)
|
static byte |
toByte(char[] bytes,
boolean le)
|
static int |
toInt(char[] bytes,
boolean le)
|
static short |
toShort(char[] bytes,
boolean le)
|
static short |
toUnsignedByte(char[] bytes,
boolean le)
|
static long |
toUnsignedInt(char[] bytes,
boolean le)
|
static int |
toUnsignedShort(char[] bytes,
boolean le)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
PDebugUtils
public PDebugUtils()
println
public static void println(String msg)
question
public static boolean question(org.eclipse.core.runtime.IStatus status,
Object source)
error
public static void error(org.eclipse.core.runtime.IStatus status,
Object source)
info
public static void info(org.eclipse.core.runtime.IStatus status,
Object source)
getByteText
public static char[] getByteText(byte b)
textToByte
public static byte textToByte(char[] text)
charFromByte
public static char charFromByte(byte value)
charToByte
public static byte charToByte(char ch)
bytesToChar
public static char bytesToChar(byte[] bytes)
toByte
public static byte toByte(char[] bytes,
boolean le)
toUnsignedByte
public static short toUnsignedByte(char[] bytes,
boolean le)
toShort
public static short toShort(char[] bytes,
boolean le)
toUnsignedShort
public static int toUnsignedShort(char[] bytes,
boolean le)
toInt
public static int toInt(char[] bytes,
boolean le)
toUnsignedInt
public static long toUnsignedInt(char[] bytes,
boolean le)
prependString
public static String prependString(String text,
int length,
char ch)
getReferencedProjects
public static List<org.eclipse.core.resources.IProject> getReferencedProjects(org.eclipse.core.resources.IProject project)
isReferencedProject
public static boolean isReferencedProject(org.eclipse.core.resources.IProject parent,
org.eclipse.core.resources.IProject project)
serializeDocument
public static String serializeDocument(Document doc)
throws IOException,
TransformerException
- Serializes a XML document into a string - encoded in UTF8 format, with
platform line separators.
- Parameters:
doc - document to serialize
- Returns:
- the document as a string
- Throws:
IOException
TransformerException
getAddressSize
public static int getAddressSize()
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.