Class ConstTpl
java.lang.Object
ghidra.app.plugin.processors.sleigh.template.ConstTpl
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 Summary
Modifier and TypeFieldDescriptionstatic final long[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConstTpl()
ConstTpl
(int tp) ConstTpl
(int tp, int ht, int vf) ConstTpl
(int tp, long val) ConstTpl
(int tp, long val, AddressSpace spc, int ht, int sel) ConstTpl
(AddressSpace spc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
fillinOffset
(FixedHandle hand, ParserWalker walker) Fillin the offset portion of a FixedHandle based on this const.void
fillinSpace
(FixedHandle hand, ParserWalker walker) Fill in the space portion of a FixedHandle, based on this const.long
fix
(ParserWalker walker) fixSpace
(ParserWalker walker) int
long
getReal()
int
int
getType()
boolean
boolean
toString()
-
Field Details
-
REAL
public static final int REAL- See Also:
-
HANDLE
public static final int HANDLE- See Also:
-
J_START
public static final int J_START- See Also:
-
J_NEXT
public static final int J_NEXT- See Also:
-
J_NEXT2
public static final int J_NEXT2- See Also:
-
J_CURSPACE
public static final int J_CURSPACE- See Also:
-
J_CURSPACE_SIZE
public static final int J_CURSPACE_SIZE- See Also:
-
SPACEID
public static final int SPACEID- See Also:
-
J_RELATIVE
public static final int J_RELATIVE- See Also:
-
J_FLOWREF
public static final int J_FLOWREF- See Also:
-
J_FLOWREF_SIZE
public static final int J_FLOWREF_SIZE- See Also:
-
J_FLOWDEST
public static final int J_FLOWDEST- See Also:
-
J_FLOWDEST_SIZE
public static final int J_FLOWDEST_SIZE- See Also:
-
V_SPACE
public static final int V_SPACE- See Also:
-
V_OFFSET
public static final int V_OFFSET- See Also:
-
V_SIZE
public static final int V_SIZE- See Also:
-
V_OFFSET_PLUS
public static final int V_OFFSET_PLUS- See Also:
-
calc_mask
public static final long[] calc_mask
-
-
Constructor Details
-
ConstTpl
protected ConstTpl() -
ConstTpl
-
ConstTpl
public ConstTpl(int tp, long val) -
ConstTpl
public ConstTpl(int tp) -
ConstTpl
-
ConstTpl
public ConstTpl(int tp, int ht, int vf) -
ConstTpl
-
-
Method Details
-
isConstSpace
public boolean isConstSpace() -
isUniqueSpace
public boolean isUniqueSpace() -
getReal
public long getReal() -
getSpaceId
-
getHandleIndex
public int getHandleIndex() -
getSelect
public int getSelect() -
getType
public int getType() -
fix
-
fixSpace
- Throws:
SleighException
-
fillinSpace
Fill in the space portion of a FixedHandle, based on this const.- Parameters:
hand
- handle to fillinwalker
- current parser walker
-
fillinOffset
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 fillinwalker
- current parser walker
-
decode
- Throws:
DecoderException
-
toString
-