Class HighConstant


  • public class HighConstant
    extends HighVariable
    A constant that has been given a datatype (like a constant that is really a pointer)
    • Constructor Detail

      • HighConstant

        public HighConstant​(HighFunction func)
        Constructor for use with restoreXml
        Parameters:
        func - is the HighFunction this constant belongs to
      • HighConstant

        public HighConstant​(java.lang.String name,
                            DataType type,
                            Varnode vn,
                            Address pc,
                            HighFunction func)
        Construct a constant NOT associated with a symbol
        Parameters:
        name - name of variable
        type - data type of variable
        vn - constant varnode
        pc - code unit address where constant is used
        func - the associated high function
    • Method Detail

      • 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