Class ConstantTemplate

java.lang.Object
ghidra.app.plugin.processors.generic.ConstantTemplate
All Implemented Interfaces:
Serializable

public class ConstantTemplate extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • ConstantTemplate

      public ConstantTemplate(long val)
    • ConstantTemplate

      public ConstantTemplate(int t)
    • ConstantTemplate

      public ConstantTemplate(Operand o, int sel1, int sel2)
    • ConstantTemplate

      public ConstantTemplate(Operand o, int sel1) throws SledException
      Constructor ConstantTemplate.
      Parameters:
      o - the operand
      sel1 - the first selection
      Throws:
      SledException
  • Method Details

    • type

      public int type()
    • select1

      public int select1()
    • select2

      public int select2()
    • resolve

      public long resolve(Position position, int off) throws Exception
      Method resolve.
      Parameters:
      position - the position of the constant to resolve
      off - the offset of the constant
      Returns:
      long
      Throws:
      Exception
    • resolve

      public long resolve(HashMap<Object,Handle> handles, Position position, int off) throws Exception
      Parameters:
      handles - optional map of handles to be used for resolving
      Returns:
      long
      Throws:
      Exception
      See Also:
    • operand

      public Operand operand()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object