org.eclipse.cdt.debug.core
Class CDebugUtils
java.lang.Object
org.eclipse.cdt.debug.core.CDebugUtils
public class CDebugUtils
- extends java.lang.Object
Utility methods.
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 java.lang.String |
getBreakpointText(org.eclipse.debug.core.model.IBreakpoint breakpoint,
boolean qualified)
|
static char[] |
getByteText(byte b)
|
static java.lang.Number |
getFloatingPointValue(ICValue value)
|
static java.util.List |
getReferencedProjects(org.eclipse.core.resources.IProject project)
|
static void |
info(org.eclipse.core.runtime.IStatus status,
java.lang.Object source)
|
static boolean |
isNaN(java.lang.Number value)
|
static boolean |
isNegativeInfinity(java.lang.Number value)
|
static boolean |
isPositiveInfinity(java.lang.Number value)
|
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 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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDebugUtils
public CDebugUtils()
question
public static boolean question(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)
error
public static void error(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)
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
getFloatingPointValue
public static java.lang.Number getFloatingPointValue(ICValue value)
isNaN
public static boolean isNaN(java.lang.Number value)
isPositiveInfinity
public static boolean isPositiveInfinity(java.lang.Number value)
isNegativeInfinity
public static boolean isNegativeInfinity(java.lang.Number value)
getReferencedProjects
public static java.util.List getReferencedProjects(org.eclipse.core.resources.IProject project)
getBreakpointText
public static java.lang.String getBreakpointText(org.eclipse.debug.core.model.IBreakpoint breakpoint,
boolean qualified)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException