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​(java.lang.String name,
                            DataType type,
                            Varnode vn,
                            Address pc,
                            HighFunction func)
                     throws InvalidInputException
        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
        Throws:
        InvalidInputException
      • HighConstant

        public HighConstant​(java.lang.String name,
                            DataType type,
                            Varnode vn,
                            Address pc,
                            DynamicSymbol sym)
                     throws InvalidInputException
        Construct constant associated with a dynamic symbol
        Parameters:
        name - name of variable
        type - data type of variable
        vn - constant varnode
        pc - code unit address where constant is used
        sym - 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