Class ConstTpl
- java.lang.Object
-
- ghidra.app.plugin.processors.sleigh.template.ConstTpl
-
public class ConstTpl extends java.lang.ObjectA 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
Fields Modifier and Type Field Description static long[]calc_maskstatic intHANDLEstatic intJ_CURSPACEstatic intJ_CURSPACE_SIZEstatic intJ_FLOWDESTstatic intJ_FLOWDEST_SIZEstatic intJ_FLOWREFstatic intJ_FLOWREF_SIZEstatic intJ_NEXTstatic intJ_RELATIVEstatic intJ_STARTstatic intREALstatic intSPACEIDstatic intV_OFFSETstatic intV_OFFSET_PLUSstatic intV_SIZEstatic intV_SPACE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillinOffset(FixedHandle hand, ParserWalker walker)Fillin the offset portion of a FixedHandle based on this const.voidfillinSpace(FixedHandle hand, ParserWalker walker)Fill in the space portion of a FixedHandle, based on this const.longfix(ParserWalker walker)AddressSpacefixSpace(ParserWalker walker)intgetHandleIndex()longgetReal()AddressSpacegetSpaceId()intgetType()booleanisConstSpace()booleanisUniqueSpace()voidrestoreXml(XmlPullParser parser, AddressFactory factory)java.lang.StringtoString()
-
-
-
Field Detail
-
REAL
public static final int REAL
- See Also:
- Constant Field Values
-
HANDLE
public static final int HANDLE
- See Also:
- Constant Field Values
-
J_START
public static final int J_START
- See Also:
- Constant Field Values
-
J_NEXT
public static final int J_NEXT
- See Also:
- Constant Field Values
-
J_CURSPACE
public static final int J_CURSPACE
- See Also:
- Constant Field Values
-
J_CURSPACE_SIZE
public static final int J_CURSPACE_SIZE
- See Also:
- Constant Field Values
-
SPACEID
public static final int SPACEID
- See Also:
- Constant Field Values
-
J_RELATIVE
public static final int J_RELATIVE
- See Also:
- Constant Field Values
-
J_FLOWREF
public static final int J_FLOWREF
- See Also:
- Constant Field Values
-
J_FLOWREF_SIZE
public static final int J_FLOWREF_SIZE
- See Also:
- Constant Field Values
-
J_FLOWDEST
public static final int J_FLOWDEST
- See Also:
- Constant Field Values
-
J_FLOWDEST_SIZE
public static final int J_FLOWDEST_SIZE
- See Also:
- Constant Field Values
-
V_SPACE
public static final int V_SPACE
- See Also:
- Constant Field Values
-
V_OFFSET
public static final int V_OFFSET
- See Also:
- Constant Field Values
-
V_SIZE
public static final int V_SIZE
- See Also:
- Constant Field Values
-
V_OFFSET_PLUS
public static final int V_OFFSET_PLUS
- See Also:
- Constant Field Values
-
calc_mask
public static final long[] calc_mask
-
-
Constructor Detail
-
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)
-
-
Method Detail
-
isConstSpace
public boolean isConstSpace()
-
isUniqueSpace
public boolean isUniqueSpace()
-
getReal
public long getReal()
-
getSpaceId
public AddressSpace getSpaceId()
-
getHandleIndex
public int getHandleIndex()
-
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 fillinpos- = current contexttreeLoc-
-
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- = the handle to fillinpos- = current contexttreeLoc-
-
restoreXml
public void restoreXml(XmlPullParser parser, AddressFactory factory)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-