Package ghidra.app.decompiler
Class ClangFieldToken
- java.lang.Object
-
- ghidra.app.decompiler.ClangToken
-
- ghidra.app.decompiler.ClangFieldToken
-
- All Implemented Interfaces:
ClangNode
public class ClangFieldToken extends ClangToken
A C code token representing a structure field.
-
-
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 ClangFieldToken(ClangNode par)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataType
getDataType()
int
getOffset()
void
restoreFromXML(XmlElement el, XmlElement end, PcodeFactory pfactory)
-
Methods inherited from class ghidra.app.decompiler.ClangToken
buildSpacer, buildToken, Child, flatten, getClangFunction, getColor, getHighlight, getHighVariable, getLineParent, getMaxAddress, getMinAddress, getPcodeOp, getSyntaxType, getText, getVarnode, isMatchingToken, isVariableRef, numChildren, Parent, setHighlight, setLineParent, setMatchingToken, toString
-
-
-
-
Constructor Detail
-
ClangFieldToken
public ClangFieldToken(ClangNode par)
-
-
Method Detail
-
getDataType
public DataType getDataType()
- Returns:
- the structure datatype associated with this field token
-
getOffset
public int getOffset()
- Returns:
- the byte offset of this field with its structure
-
restoreFromXML
public void restoreFromXML(XmlElement el, XmlElement end, PcodeFactory pfactory)
- Overrides:
restoreFromXML
in classClangToken
-
-