Class ClangFieldToken

java.lang.Object
ghidra.app.decompiler.ClangToken
ghidra.app.decompiler.ClangFieldToken
All Implemented Interfaces:
ClangNode

public class ClangFieldToken extends ClangToken
A source code token representing a structure field.
  • Constructor Details

    • ClangFieldToken

      public ClangFieldToken(ClangNode par)
  • Method Details

    • 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
    • getPcodeOp

      public PcodeOp getPcodeOp()
      Description copied from class: ClangToken
      Many tokens directly represent a pcode operator in the data-flow
      Overrides:
      getPcodeOp in class ClangToken
      Returns:
      the operation (PcodeOp) associated with this token or null
    • decode

      public void decode(Decoder decoder, PcodeFactory pfactory) throws DecoderException
      Description copied from class: ClangToken
      Decode this token from the current position in an encoded stream
      Overrides:
      decode in class ClangToken
      Parameters:
      decoder - is the decoder for the stream
      pfactory - is used to look up p-code objects associated with the token
      Throws:
      DecoderException - for problems decoding the stream