Package ghidra.app.decompiler
Class PrettyPrinter
java.lang.Object
ghidra.app.decompiler.PrettyPrinter
This class is used to convert a C language
token group into readable C code.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrettyPrinter
(Function function, ClangTokenGroup tokgroup) Constructs a new pretty printer using the specified C language token group. -
Method Summary
-
Field Details
-
INDENT_STRING
The indent string to use when printing.- See Also:
-
-
Constructor Details
-
PrettyPrinter
Constructs a new pretty printer using the specified C language token group.- Parameters:
tokgroup
- the C language token group
-
-
Method Details
-
getFunction
-
getLines
Returns an array list of the C language lines contained in the C language token group.- Returns:
- an array list of the C language lines
-
print
Prints the C language token group into a string of C code.- Parameters:
removeInvalidChars
- true if invalid character should be removed from functions and labels.- Returns:
- a string of readable C code
-