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 int
HANDLE
static int
JUMP_CODESPACE
static int
JUMP_NEXT
static int
JUMP_START
static int
REAL
-
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 boolean
equals(java.lang.Object o)
int
hashCode()
Operand
operand()
long
resolve(Position position, int off)
Method resolve.long
resolve(java.util.HashMap<java.lang.Object,Handle> handles, Position position, int off)
int
select1()
int
select2()
int
type()
-
-
-
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
-i
-- 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:
handles
-position
-off
-- 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
-position
-off
-- Returns:
- long
- Throws:
java.lang.Exception
-
operand
public Operand operand()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-