Package ghidra.program.model.pcode
Class HighConstant
- java.lang.Object
-
- ghidra.program.model.pcode.HighVariable
-
- ghidra.program.model.pcode.HighConstant
-
public class HighConstant extends HighVariable
A constant that has been given a datatype (like a constant that is really a pointer)
-
-
Constructor Summary
Constructors Constructor Description HighConstant(java.lang.String name, DataType type, Varnode vn, Address pc, DynamicSymbol sym)Construct constant associated with a dynamic symbolHighConstant(java.lang.String name, DataType type, Varnode vn, Address pc, HighFunction func)Construct a constant NOT associated with a symbol
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressgetPCAddress()ScalargetScalar()DynamicSymbolgetSymbol()-
Methods inherited from class ghidra.program.model.pcode.HighVariable
attachInstances, getDataType, getHighFunction, getInstances, getName, getRepresentative, getSize, getStorage, setHighOnInstances
-
-
-
-
Constructor Detail
-
HighConstant
public HighConstant(java.lang.String name, DataType type, Varnode vn, Address pc, HighFunction func) throws InvalidInputExceptionConstruct 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- Throws:
InvalidInputException
-
HighConstant
public HighConstant(java.lang.String name, DataType type, Varnode vn, Address pc, DynamicSymbol sym) throws InvalidInputExceptionConstruct constant associated with a dynamic symbol- Parameters:
name- name of variabletype- data type of variablevn- constant varnodepc- code unit address where constant is usedsym- associated dynamic symbol- Throws:
InvalidInputException
-
-
Method Detail
-
getSymbol
public DynamicSymbol getSymbol()
- Returns:
- associated dynamic symbol or null
-
getPCAddress
public Address getPCAddress()
- Returns:
- instruction address the variable comes into scope within the function
-
getScalar
public Scalar getScalar()
- Returns:
- constant as a scalar object
-
-