Class ConstantTemplate
- java.lang.Object
-
- ghidra.app.plugin.processors.generic.ConstantTemplate
-
- All Implemented Interfaces:
java.io.Serializable
public class ConstantTemplate extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intHANDLEstatic intJUMP_CODESPACEstatic intJUMP_NEXTstatic intJUMP_STARTstatic intREAL
-
Constructor Summary
Constructors Constructor Description ConstantTemplate(int t)ConstantTemplate(long val)ConstantTemplate(Operand o, int sel1)Constructor ConstantTemplate.ConstantTemplate(Operand o, int sel1, int sel2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()Operandoperand()longresolve(Position position, int off)Method resolve.longresolve(java.util.HashMap<java.lang.Object,Handle> handles, Position position, int off)intselect1()intselect2()inttype()
-
-
-
Field Detail
-
REAL
public static final int REAL
- See Also:
- Constant Field Values
-
HANDLE
public static final int HANDLE
- See Also:
- Constant Field Values
-
JUMP_START
public static final int JUMP_START
- See Also:
- Constant Field Values
-
JUMP_NEXT
public static final int JUMP_NEXT
- See Also:
- Constant Field Values
-
JUMP_CODESPACE
public static final int JUMP_CODESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 operandsel1- the first selection- Throws:
SledException
-
-
Method Detail
-
type
public int type()
-
select1
public int select1()
-
select2
public int select2()
-
resolve
public long resolve(Position position, int off) throws java.lang.Exception
Method resolve.- Parameters:
position- the position of the constant to resolveoff- the offset of the constant- Returns:
- long
- Throws:
java.lang.Exception
-
resolve
public long resolve(java.util.HashMap<java.lang.Object,Handle> handles, Position position, int off) throws java.lang.Exception
- Parameters:
handles- optional map of handles to be used for resolving- Returns:
- long
- Throws:
java.lang.Exception- See Also:
resolve(Position, int)
-
operand
public Operand operand()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-