Class ClangTypeToken

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

public class ClangTypeToken extends ClangToken
A source code token representing a data-type. This does not include qualifiers on the data-type like '*' (pointer to) or '[]' (array of). There should be no whitespace in the name.
  • Constructor Details

    • ClangTypeToken

      public ClangTypeToken(ClangNode par)
  • Method Details

    • isVariableRef

      public boolean isVariableRef()
      Overrides:
      isVariableRef in class ClangToken
      Returns:
      true if this token represents a variable (in source code)
    • getDataType

      public DataType getDataType()
      Returns:
      the data-type associated with this token
    • 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