Package ghidra.app.decompiler
Class ClangVariableDecl
java.lang.Object
ghidra.app.decompiler.ClangTokenGroup
ghidra.app.decompiler.ClangVariableDecl
A grouping of source code tokens representing a variable declaration.
This can be for a one line declaration (as for local variables) or
as part of a function prototype declaring a parameter.
-
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
-
ClangVariableDecl
-
-
Method Details
-
getDataType
- Returns:
- the data-type of the variable being declared
-
getHighVariable
- Returns:
- the HighVariable (collection of Varnodes) associated with the variable
-
getHighSymbol
- Returns:
- the symbol defined by this variable declaration
-
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
-