Package ghidra.program.model.pcode
Class HighConstant
java.lang.Object
ghidra.program.model.pcode.HighVariable
ghidra.program.model.pcode.HighConstant
A constant that has been given a datatype (like a constant that is really a pointer)
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHighConstant(HighFunction func) Constructor for use with restoreXmlHighConstant(String name, DataType type, Varnode vn, Address pc, HighFunction func) Construct a constant NOT associated with a symbol -
Method Summary
Modifier and TypeMethodDescriptionvoidDecode this HighVariable from a<high>element in the streamRetrieve any underlying HighSymbolMethods inherited from class ghidra.program.model.pcode.HighVariable
attachInstances, decodeInstances, getDataType, getHighFunction, getInstances, getName, getOffset, getRepresentative, getSize, requiresDynamicStorage, setHighOnInstances
-
Constructor Details
-
HighConstant
Constructor for use with restoreXml- Parameters:
func- is the HighFunction this constant belongs to
-
HighConstant
Construct a constant NOT associated with a symbol- Parameters:
name- name of variabletype- data type of variablevn- constant varnodepc- code unit address where constant is usedfunc- the associated high function
-
-
Method Details
-
getSymbol
Description copied from class:HighVariableRetrieve any underlying HighSymbol- Specified by:
getSymbolin classHighVariable- Returns:
- the HighSymbol
-
getPCAddress
- Returns:
- instruction address the variable comes into scope within the function
-
getScalar
- Returns:
- constant as a scalar object
-
decode
Description copied from class:HighVariableDecode this HighVariable from a<high>element in the stream- Specified by:
decodein classHighVariable- Parameters:
decoder- is the stream decoder- Throws:
DecoderException- for invalid encodings
-