Package ghidra.app.decompiler
Class ClangVariableToken
- java.lang.Object
-
- ghidra.app.decompiler.ClangToken
-
- ghidra.app.decompiler.ClangVariableToken
-
- All Implemented Interfaces:
ClangNode
public class ClangVariableToken extends ClangToken
Token representing a C variable
-
-
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 ClangVariableToken(ClangNode par)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HighVariable
getHighVariable()
Get the high-level variable associate with this token or null otherwiseAddress
getMaxAddress()
Address
getMinAddress()
PcodeOp
getPcodeOp()
Many tokens directly represent a pcode operator in the data-flowVarnode
getVarnode()
Many tokens directly represent a variable in the data-flowboolean
isVariableRef()
void
restoreFromXML(XmlElement el, XmlElement end, PcodeFactory pfactory)
-
Methods inherited from class ghidra.app.decompiler.ClangToken
buildSpacer, buildToken, Child, flatten, getClangFunction, getColor, getHighlight, getLineParent, getSyntaxType, getText, isMatchingToken, numChildren, Parent, setHighlight, setLineParent, setMatchingToken, toString
-
-
-
-
Constructor Detail
-
ClangVariableToken
public ClangVariableToken(ClangNode par)
-
-
Method Detail
-
getVarnode
public Varnode getVarnode()
Description copied from class:ClangToken
Many tokens directly represent a variable in the data-flow- Overrides:
getVarnode
in classClangToken
- Returns:
- the variable (Varnode) associated with this token or null
-
getPcodeOp
public PcodeOp getPcodeOp()
Description copied from class:ClangToken
Many tokens directly represent a pcode operator in the data-flow- Overrides:
getPcodeOp
in classClangToken
- Returns:
- the operation (PcodeOp) associated with this token or null
-
isVariableRef
public boolean isVariableRef()
- Overrides:
isVariableRef
in classClangToken
-
getMinAddress
public Address getMinAddress()
- Specified by:
getMinAddress
in interfaceClangNode
- Overrides:
getMinAddress
in classClangToken
-
getMaxAddress
public Address getMaxAddress()
- Specified by:
getMaxAddress
in interfaceClangNode
- Overrides:
getMaxAddress
in classClangToken
-
getHighVariable
public HighVariable getHighVariable()
Description copied from class:ClangToken
Get the high-level variable associate with this token or null otherwise- Overrides:
getHighVariable
in classClangToken
- Returns:
- HighVariable
-
restoreFromXML
public void restoreFromXML(XmlElement el, XmlElement end, PcodeFactory pfactory)
- Overrides:
restoreFromXML
in classClangToken
-
-