Package org.eclipse.cdt.core.parser.util
Class DebugUtil
java.lang.Object
org.eclipse.cdt.core.parser.util.DebugUtil
This class contains several convenience methods mainly for debugging purposes.
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Prints a trace message to stdout that gives info about the method that calls this method.static void
printMethodTrace
(String extraMessage) Prints a trace message to stdout that gives info about the method that calls this method.static void
Prints the values of javabean properties to the console.static String
safeClassName
(Object obj) static String
toStringWithClass
(Object obj)
-
Method Details
-
printMethodTrace
public static void printMethodTrace()Prints a trace message to stdout that gives info about the method that calls this method. -
printMethodTrace
Prints a trace message to stdout that gives info about the method that calls this method. The output is in a format that will show up as a hyperlink in the eclipse console. -
safeClassName
-
toStringWithClass
-
printObjectProperties
Prints the values of javabean properties to the console. This method is not recursive, it does not print nested properties. Example of usage: IResource resource = ...; DebugUtil.printObjectProperties(resource); DebugUtil.printObjectProperties(resource.getResourceAttributes());- Since:
- 5.1
-