org.eclipse.ptp.debug.core
Class PDebugUtils
java.lang.Object
org.eclipse.ptp.debug.core.PDebugUtils
public class PDebugUtils
- extends java.lang.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,
java.lang.Object source)
|
static int |
getAddressSize()
|
static char[] |
getByteText(byte b)
|
static java.util.List<org.eclipse.core.resources.IProject> |
getReferencedProjects(org.eclipse.core.resources.IProject project)
|
static void |
info(org.eclipse.core.runtime.IStatus status,
java.lang.Object source)
|
static boolean |
isReferencedProject(org.eclipse.core.resources.IProject parent,
org.eclipse.core.resources.IProject project)
|
static java.lang.String |
prependString(java.lang.String text,
int length,
char ch)
|
static void |
println(java.lang.String msg)
|
static boolean |
question(org.eclipse.core.runtime.IStatus status,
java.lang.Object source)
|
static java.lang.String |
serializeDocument(org.w3c.dom.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(java.lang.String msg)
question
public static boolean question(org.eclipse.core.runtime.IStatus status,
java.lang.Object source)
error
public static void error(org.eclipse.core.runtime.IStatus status,
java.lang.Object source)
info
public static void info(org.eclipse.core.runtime.IStatus status,
java.lang.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 java.lang.String prependString(java.lang.String text,
int length,
char ch)
getReferencedProjects
public static java.util.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 java.lang.String serializeDocument(org.w3c.dom.Document doc)
throws java.io.IOException,
javax.xml.transform.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:
java.io.IOException
javax.xml.transform.TransformerException
getAddressSize
public static int getAddressSize()
Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.