Package ghidra.app.decompiler
Class ClangOpToken
- java.lang.Object
-
- ghidra.app.decompiler.ClangToken
-
- ghidra.app.decompiler.ClangOpToken
-
- All Implemented Interfaces:
ClangNode
public class ClangOpToken extends ClangToken
Token representing an operation in C code text. This could be a keyword like "if" or "while" but could also be an operator like '+' or '*' The token may contain an id for the pcode object representing the operation
-
-
Field Summary
-
Fields inherited from class ghidra.app.decompiler.ClangToken
COMMENT_COLOR, CONST_COLOR, DEFAULT_COLOR, FUNCTION_COLOR, GLOBAL_COLOR, KEYWORD_COLOR, PARAMETER_COLOR, TYPE_COLOR, VARIABLE_COLOR
-
-
Constructor Summary
Constructors Constructor Description ClangOpToken(ClangNode par)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressgetMaxAddress()AddressgetMinAddress()PcodeOpgetPcodeOp()Many tokens directly represent a pcode operator in the data-flowvoidrestoreFromXML(XmlElement el, XmlElement end, PcodeFactory pfactory)-
Methods inherited from class ghidra.app.decompiler.ClangToken
buildSpacer, buildToken, Child, flatten, getClangFunction, getColor, getHighlight, getHighVariable, getLineParent, getSyntaxType, getText, getVarnode, isMatchingToken, isVariableRef, numChildren, Parent, setHighlight, setLineParent, setMatchingToken, toString
-
-
-
-
Constructor Detail
-
ClangOpToken
public ClangOpToken(ClangNode par)
-
-
Method Detail
-
getPcodeOp
public PcodeOp getPcodeOp()
Description copied from class:ClangTokenMany tokens directly represent a pcode operator in the data-flow- Overrides:
getPcodeOpin classClangToken- Returns:
- the operation (PcodeOp) associated with this token or null
-
getMinAddress
public Address getMinAddress()
- Specified by:
getMinAddressin interfaceClangNode- Overrides:
getMinAddressin classClangToken
-
getMaxAddress
public Address getMaxAddress()
- Specified by:
getMaxAddressin interfaceClangNode- Overrides:
getMaxAddressin classClangToken
-
restoreFromXML
public void restoreFromXML(XmlElement el, XmlElement end, PcodeFactory pfactory)
- Overrides:
restoreFromXMLin classClangToken
-
-