Package ghidra.app.decompiler
Class ClangStatement
java.lang.Object
ghidra.app.decompiler.ClangTokenGroup
ghidra.app.decompiler.ClangStatement
A source code statement (as typically terminated by ';' in C)
A statement must have a p-code operation associated with it. In the case of conditional
flow control operations, there are usually two lines associated with the statement one
containing the '{' and one containing '}'. The one containing the actual conditional branch
is considered a C statement, while the other one is just considered a blank line.
I.e.
if (expression) {
is a C statement, while the line containing the closing '}' by itself is considered blank
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(Decoder decoder, PcodeFactory pfactory) Decode this text from an encoded stream.Methods inherited from class ghidra.app.decompiler.ClangTokenGroup
AddTokenGroup, Child, flatten, getClangFunction, getMaxAddress, getMinAddress, iterator, numChildren, Parent, setHighlight, stream, tokenIterator, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ClangStatement
-
-
Method Details
-
getPcodeOp
- Returns:
- the (final) p-code operation associated with the statement.
-
decode
Description copied from class:ClangTokenGroupDecode this text from an encoded stream.- Overrides:
decodein classClangTokenGroup- Parameters:
decoder- is the decoder for the streampfactory- is used to look up p-code attributes to associate with tokens- Throws:
DecoderException- for problems decoding the stream
-