Package ghidra.pcodeCPort.context
Class ParserContext
- java.lang.Object
-
- ghidra.pcodeCPort.context.ParserContext
-
public class ParserContext extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParserContext.ContextState
-
Constructor Summary
Constructors Constructor Description ParserContext(ContextCache ccache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommit(TripleSymbol sym, int num, int mask, boolean flow, ConstructState point)
void
allocateOperand(int i, ParserWalkerChange walker)
void
applyCommits()
void
clearCommits()
void
deallocateState(ParserWalkerChange walker)
void
dispose()
Address
getAddr()
byte[]
getBuffer()
AddrSpace
getConstSpace()
int
getContextBits(int startbit, int size)
int
getContextBytes(int bytestart, int size)
AddrSpace
getCurSpace()
int
getDelaySlot()
Address
getFlowDestAddr()
Returns original flow destination address for instruction or nullAddress
getFlowRefAddr()
Returns primary flow reference destination address for instruction or nullint
getInstructionBits(int startbit, int size, int off)
int
getInstructionBytes(int bytestart, int size, int off)
int
getLength()
Address
getNaddr()
ParserContext.ContextState
getParserState()
void
initialize(int maxstate, int maxparam, AddrSpace spc)
void
loadContext()
void
setAddr(Address ad)
void
setContextWord(int i, int val, int mask)
void
setDelaySlot(int val)
void
setNaddr(Address ad)
void
setOffsetOutOfBand(Constructor c, int index)
void
setParserState(ParserContext.ContextState st)
-
-
-
Constructor Detail
-
ParserContext
public ParserContext(ContextCache ccache)
-
-
Method Detail
-
dispose
public void dispose()
-
setAddr
public void setAddr(Address ad)
-
setNaddr
public void setNaddr(Address ad)
-
clearCommits
public void clearCommits()
-
getAddr
public Address getAddr()
-
getNaddr
public Address getNaddr()
-
getCurSpace
public AddrSpace getCurSpace()
-
getConstSpace
public AddrSpace getConstSpace()
-
setContextWord
public void setContextWord(int i, int val, int mask)
-
loadContext
public void loadContext()
-
getLength
public int getLength()
-
setDelaySlot
public void setDelaySlot(int val)
-
getDelaySlot
public int getDelaySlot()
-
getBuffer
public byte[] getBuffer()
-
initialize
public void initialize(int maxstate, int maxparam, AddrSpace spc)
-
getParserState
public ParserContext.ContextState getParserState()
-
setParserState
public void setParserState(ParserContext.ContextState st)
-
deallocateState
public void deallocateState(ParserWalkerChange walker)
-
allocateOperand
public void allocateOperand(int i, ParserWalkerChange walker)
-
getInstructionBytes
public int getInstructionBytes(int bytestart, int size, int off)
-
getInstructionBits
public int getInstructionBits(int startbit, int size, int off)
-
getContextBytes
public int getContextBytes(int bytestart, int size)
-
getContextBits
public int getContextBits(int startbit, int size)
-
setOffsetOutOfBand
public void setOffsetOutOfBand(Constructor c, int index)
-
addCommit
public void addCommit(TripleSymbol sym, int num, int mask, boolean flow, ConstructState point)
-
applyCommits
public void applyCommits()
-
getFlowRefAddr
public Address getFlowRefAddr()
Returns primary flow reference destination address for instruction or null
-
getFlowDestAddr
public Address getFlowDestAddr()
Returns original flow destination address for instruction or null
-
-