java.lang.Object
ghidra.app.plugin.processors.sleigh.template.ConstTpl

public class ConstTpl extends Object
A placeholder for what will resolve to a field of a Varnode (an AddressSpace or integer offset or integer size) given a particular InstructionContext
  • Field Details

  • Constructor Details

    • ConstTpl

      protected ConstTpl()
    • ConstTpl

      public ConstTpl(ConstTpl op2)
    • ConstTpl

      public ConstTpl(int tp, long val)
    • ConstTpl

      public ConstTpl(int tp)
    • ConstTpl

      public ConstTpl(AddressSpace spc)
    • ConstTpl

      public ConstTpl(int tp, int ht, int vf)
    • ConstTpl

      public ConstTpl(int tp, long val, AddressSpace spc, int ht, int sel)
  • Method Details

    • isConstSpace

      public boolean isConstSpace()
    • isUniqueSpace

      public boolean isUniqueSpace()
    • getReal

      public long getReal()
    • getSpaceId

      public AddressSpace getSpaceId()
    • getHandleIndex

      public int getHandleIndex()
    • getSelect

      public int getSelect()
    • getType

      public int getType()
    • fix

      public long fix(ParserWalker walker)
    • fixSpace

      public AddressSpace fixSpace(ParserWalker walker) throws SleighException
      Throws:
      SleighException
    • fillinSpace

      public void fillinSpace(FixedHandle hand, ParserWalker walker)
      Fill in the space portion of a FixedHandle, based on this const.
      Parameters:
      hand - handle to fillin
      walker - current parser walker
    • fillinOffset

      public void fillinOffset(FixedHandle hand, ParserWalker walker)
      Fillin the offset portion of a FixedHandle based on this const. If the offset value is dynamic, fill in the handle appropriately. We don't just fill in the temporary variable offset, like "fix". Assume that hand.space is already filled in
      Parameters:
      hand - handle to fillin
      walker - current parser walker
    • decode

      public void decode(Decoder decoder) throws DecoderException
      Throws:
      DecoderException
    • toString

      public String toString()
      Overrides:
      toString in class Object