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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:ClangTokenGroup
Decode this text from an encoded stream.- Overrides:
decode
in 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
-