Package org.eclipse.cdt.core.parser.util
Class ASTPrinter
java.lang.Object
org.eclipse.cdt.core.parser.util.ASTPrinter
A utility that prints an AST to the console or any print stream, useful 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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Prints the AST to stdout.static boolean
print
(IASTNode node, PrintStream out) Prints the AST to the given PrintStream.static boolean
printProblems
(IASTNode root) Prints problem nodes in the AST to stdout.static boolean
printProblems
(IASTNode node, PrintStream out) Prints problem nodes in the AST to the given printstream.
-
Constructor Details
-
ASTPrinter
public ASTPrinter()
-
-
Method Details
-
print
Prints the AST to the given PrintStream.- Returns:
- Always returns false, boolean return type allows this method to be called from a conditional breakpoint during debugging.
-
print
Prints the AST to stdout.- Returns:
- Always returns false, boolean return type allows this method to be called from a conditional breakpoint during debugging.
-
printProblems
Prints problem nodes in the AST to the given printstream.- Returns:
- Always returns false, boolean return type allows this method to be called from a conditional breakpoint during debugging.
-
printProblems
Prints problem nodes in the AST to stdout.- Returns:
- Always returns false, boolean return type allows this method to be called from a conditional breakpoint during debugging.
-