Package ghidra.pcodeCPort.slghsymbol
Class OperandSymbol
- java.lang.Object
-
- ghidra.pcodeCPort.slghsymbol.SleighSymbol
-
- ghidra.pcodeCPort.slghsymbol.TripleSymbol
-
- ghidra.pcodeCPort.slghsymbol.SpecificSymbol
-
- ghidra.pcodeCPort.slghsymbol.OperandSymbol
-
- All Implemented Interfaces:
java.lang.Comparable<SleighSymbol>
public class OperandSymbol extends SpecificSymbol
-
-
Field Summary
Fields Modifier and Type Field Description static int
code_address
static int
marked
static int
offset_irrel
int
offsetbase
int
reloffset
static int
variable_len
-
Fields inherited from class ghidra.pcodeCPort.slghsymbol.SleighSymbol
location
-
-
Constructor Summary
Constructors Constructor Description OperandSymbol(Location location)
OperandSymbol(Location location, java.lang.String nm, int index, Constructor ct)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearMark()
void
defineOperand(PatternExpression pe)
void
defineOperand(TripleSymbol tri)
void
dispose()
PatternExpression
getDefiningExpression()
TripleSymbol
getDefiningSymbol()
void
getFixedHandle(FixedHandle hnd, ParserWalker pos)
int
getIndex()
int
getMinimumLength()
int
getOffsetBase()
PatternExpression
getPatternExpression()
int
getRelativeOffset()
int
getSize()
symbol_type
getType()
VarnodeTpl
getVarnode()
boolean
isCodeAddress()
boolean
isMarked()
boolean
isOffsetIrrelevant()
boolean
isVariableLength()
void
print(java.io.PrintStream s, ParserWalker pos)
void
restoreXml(org.jdom.Element el, SleighBase trans)
void
saveXml(java.io.PrintStream s)
void
saveXmlHeader(java.io.PrintStream s)
void
setCodeAddress()
void
setMark()
void
setOffsetIrrelevant()
void
setVariableLength()
-
Methods inherited from class ghidra.pcodeCPort.slghsymbol.TripleSymbol
resolve
-
Methods inherited from class ghidra.pcodeCPort.slghsymbol.SleighSymbol
compareTo, getId, getLocation, getName, saveSleighSymbolXmlHeader, setLocation, setWasSought, toDetailedString, toString, wasSought
-
-
-
-
Field Detail
-
code_address
public static final int code_address
- See Also:
- Constant Field Values
-
offset_irrel
public static final int offset_irrel
- See Also:
- Constant Field Values
-
variable_len
public static final int variable_len
- See Also:
- Constant Field Values
-
marked
public static final int marked
- See Also:
- Constant Field Values
-
reloffset
public int reloffset
-
offsetbase
public int offsetbase
-
-
Constructor Detail
-
OperandSymbol
public OperandSymbol(Location location)
-
OperandSymbol
public OperandSymbol(Location location, java.lang.String nm, int index, Constructor ct)
-
-
Method Detail
-
getRelativeOffset
public int getRelativeOffset()
-
getOffsetBase
public int getOffsetBase()
-
getMinimumLength
public int getMinimumLength()
-
getDefiningExpression
public PatternExpression getDefiningExpression()
-
getDefiningSymbol
public TripleSymbol getDefiningSymbol()
-
getIndex
public int getIndex()
-
setCodeAddress
public void setCodeAddress()
-
isCodeAddress
public boolean isCodeAddress()
-
setOffsetIrrelevant
public void setOffsetIrrelevant()
-
isOffsetIrrelevant
public boolean isOffsetIrrelevant()
-
setVariableLength
public void setVariableLength()
-
isVariableLength
public boolean isVariableLength()
-
setMark
public void setMark()
-
clearMark
public void clearMark()
-
isMarked
public boolean isMarked()
-
getPatternExpression
public PatternExpression getPatternExpression()
- Specified by:
getPatternExpression
in classTripleSymbol
-
getType
public symbol_type getType()
- Overrides:
getType
in classSleighSymbol
-
defineOperand
public void defineOperand(PatternExpression pe)
-
defineOperand
public void defineOperand(TripleSymbol tri)
-
dispose
public void dispose()
- Overrides:
dispose
in classSleighSymbol
-
getVarnode
public VarnodeTpl getVarnode()
- Specified by:
getVarnode
in classSpecificSymbol
-
getFixedHandle
public void getFixedHandle(FixedHandle hnd, ParserWalker pos)
- Specified by:
getFixedHandle
in classTripleSymbol
-
getSize
public int getSize()
- Overrides:
getSize
in classTripleSymbol
-
print
public void print(java.io.PrintStream s, ParserWalker pos)
- Specified by:
print
in classTripleSymbol
-
saveXml
public void saveXml(java.io.PrintStream s)
- Overrides:
saveXml
in classSleighSymbol
-
saveXmlHeader
public void saveXmlHeader(java.io.PrintStream s)
- Overrides:
saveXmlHeader
in classSleighSymbol
-
restoreXml
public void restoreXml(org.jdom.Element el, SleighBase trans)
- Overrides:
restoreXml
in classSleighSymbol
-
-