Package ghidra.app.decompiler
Class ClangVariableToken
java.lang.Object
ghidra.app.decompiler.ClangToken
ghidra.app.decompiler.ClangVariableToken
- All Implemented Interfaces:
ClangNode
Token representing a C variable
-
Field Summary
Fields inherited from class ghidra.app.decompiler.ClangToken
COMMENT_COLOR, CONST_COLOR, DEFAULT_COLOR, ERROR_COLOR, FUNCTION_COLOR, GLOBAL_COLOR, KEYWORD_COLOR, MAX_COLOR, PARAMETER_COLOR, SPECIAL_COLOR, TYPE_COLOR, VARIABLE_COLOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(Decoder decoder, PcodeFactory pfactory) Get the high-level variable associate with this token or null otherwiseMany tokens directly represent a pcode operator in the data-flowMany tokens directly represent a variable in the data-flowboolean
Methods inherited from class ghidra.app.decompiler.ClangToken
buildSpacer, buildToken, Child, flatten, getClangFunction, getHighlight, getLineParent, getSyntaxType, getText, isMatchingToken, numChildren, Parent, setHighlight, setLineParent, setMatchingToken, toString
-
Constructor Details
-
ClangVariableToken
-
-
Method Details
-
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
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
- Specified by:
getMinAddress
in interfaceClangNode
- Overrides:
getMinAddress
in classClangToken
-
getMaxAddress
- Specified by:
getMaxAddress
in interfaceClangNode
- Overrides:
getMaxAddress
in classClangToken
-
getHighVariable
Description copied from class:ClangToken
Get the high-level variable associate with this token or null otherwise- Overrides:
getHighVariable
in classClangToken
- Returns:
- HighVariable
-
decode
- Overrides:
decode
in classClangToken
- Throws:
DecoderException
-