Class Operand
- java.lang.Object
-
- ghidra.app.plugin.processors.generic.Operand
-
- All Implemented Interfaces:
java.io.Serializable
public class Operand extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Operand(java.lang.String n, OperandValue o, Offset off)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandynamic()voidgetAllHandles(java.util.ArrayList<Handle> handles, Position position, int off)HandlegetHandle()Returns previously computed handle for this operand.HandlegetHandle(Position position, int off)Returns a handle for this operand *without* generating any pcodeHandlegetHandle(java.util.ArrayList<PcodeOp> pcode, Position position, int off)Method getHandle.ConstructorInfogetInfo(MemBuffer buf, int off)PcodeOp[]getPcode(Position position)Method getPcodeintgetSize()intlength(MemBuffer buf, int off)voidlinkRelativeOffsets(java.util.Hashtable<java.lang.String,Operand> opHash)java.lang.Stringname()voidtoList(java.util.ArrayList<Handle> list, Position position, int off)Return ljava.lang.StringtoString(MemBuffer buf, int off)
-
-
-
Constructor Detail
-
Operand
public Operand(java.lang.String n, OperandValue o, Offset off)
-
-
Method Detail
-
toString
public java.lang.String toString(MemBuffer buf, int off) throws java.lang.Exception
- Throws:
java.lang.Exception
-
length
public int length(MemBuffer buf, int off) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getInfo
public ConstructorInfo getInfo(MemBuffer buf, int off) throws java.lang.Exception
- Throws:
java.lang.Exception
-
name
public java.lang.String name()
-
linkRelativeOffsets
public void linkRelativeOffsets(java.util.Hashtable<java.lang.String,Operand> opHash)
-
getHandle
public Handle getHandle(java.util.ArrayList<PcodeOp> pcode, Position position, int off) throws java.lang.Exception
Method getHandle.- Parameters:
pcode-position-off-- Returns:
- Handle
- Throws:
java.lang.Exception
-
getHandle
public Handle getHandle()
Returns previously computed handle for this operand. Should not be called before the full version of getHandle, where Position and and offset are specified.- Returns:
- Handle
-
getHandle
public Handle getHandle(Position position, int off) throws java.lang.Exception
Returns a handle for this operand *without* generating any pcode- Parameters:
position-off-- Returns:
- Throws:
java.lang.Exception
-
getAllHandles
public void getAllHandles(java.util.ArrayList<Handle> handles, Position position, int off) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getPcode
public PcodeOp[] getPcode(Position position) throws java.lang.Exception
Method getPcode- Parameters:
position-- Returns:
- array of pcode ops for this operand
- Throws:
java.lang.Exception
-
dynamic
public boolean dynamic()
-
toList
public void toList(java.util.ArrayList<Handle> list, Position position, int off) throws java.lang.Exception
Return l- Parameters:
list-buf-i-- Throws:
java.lang.Exception
-
getSize
public int getSize()
- Returns:
-
-