Class DWARFExpression
- java.lang.Object
- 
- ghidra.app.util.bin.format.dwarf4.expression.DWARFExpression
 
- 
 public class DWARFExpression extends java.lang.ObjectADWARFExpressionis an immutable list ofoperationsand some factory methods to read an expression from its binary representation.Use a DWARFExpressionEvaluatorto execute aDWARFExpression.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringexprToString(byte[] exprBytes, DIEAggregate diea)intfindOpByOffset(long offset)Finds the index of anoperationby its offset from the beginning of the expression.intgetLastActiveOpIndex()Returns the index of the last operation that is not a NOP.ghidra.app.util.bin.format.dwarf4.expression.DWARFExpressionOperationgetOp(int i)intgetOpCount()static DWARFExpressionread(byte[] exprBytes, byte addrSize, boolean isLittleEndian, int dwarf_format)static DWARFExpressionread(BinaryReader reader, byte addrSize, int dwarf_format)java.lang.StringtoString()java.lang.StringtoString(int caretPosition, boolean newlines, boolean offsets)
 
- 
- 
- 
Method Detail- 
exprToStringpublic static java.lang.String exprToString(byte[] exprBytes, DIEAggregate diea)
 - 
readpublic static DWARFExpression read(byte[] exprBytes, byte addrSize, boolean isLittleEndian, int dwarf_format) throws DWARFExpressionException - Throws:
- DWARFExpressionException
 
 - 
readpublic static DWARFExpression read(BinaryReader reader, byte addrSize, int dwarf_format) throws DWARFExpressionException - Throws:
- DWARFExpressionException
 
 - 
getOppublic ghidra.app.util.bin.format.dwarf4.expression.DWARFExpressionOperation getOp(int i) 
 - 
getOpCountpublic int getOpCount() 
 - 
getLastActiveOpIndexpublic int getLastActiveOpIndex() Returns the index of the last operation that is not a NOP.- Returns:
 
 - 
findOpByOffsetpublic int findOpByOffset(long offset) Finds the index of anoperationby its offset from the beginning of the expression.- Parameters:
- offset-
- Returns:
- -1 if there is no op at the specified offset
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString(int caretPosition, boolean newlines, boolean offsets)
 
- 
 
-