MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / InstructionTextToken

Class InstructionTextToken

python/architecture.py:2792–2913  ·  view source on GitHub ↗

``class InstructionTextToken`` is used to tell the core about the various components in the disassembly views. The below table is provided for documentation purposes but the complete list of TokenTypes is available at: :class:`!enums.InstructionTextTokenType`. Note that types marked as `Not emit

Source from the content-addressed store, hash-verified

2790
2791@dataclass
2792class InstructionTextToken:
2793 """
2794 ``class InstructionTextToken`` is used to tell the core about the various components in the disassembly views.
2795
2796 The below table is provided for documentation purposes but the complete list of TokenTypes is available at: :class:`!enums.InstructionTextTokenType`. Note that types marked as `Not emitted by architectures` are not intended to be used by Architectures during lifting. Rather, they are added by the core during analysis or display. UI plugins, however, may make use of them as appropriate.
2797
2798 Uses of tokens include plugins that parse the output of an architecture (though parsing IL is recommended), or additionally, applying color schemes appropriately.
2799
2800 ========================== ============================================
2801 InstructionTextTokenType Description
2802 ========================== ============================================
2803 AddressDisplayToken **Not emitted by architectures**
2804 AnnotationToken **Not emitted by architectures**
2805 ArgumentNameToken **Not emitted by architectures**
2806 BeginMemoryOperandToken The start of memory operand
2807 CharacterConstantToken A printable character
2808 CodeRelativeAddressToken **Not emitted by architectures**
2809 CodeSymbolToken **Not emitted by architectures**
2810 DataSymbolToken **Not emitted by architectures**
2811 EndMemoryOperandToken The end of a memory operand
2812 ExternalSymbolToken **Not emitted by architectures**
2813 FieldNameToken **Not emitted by architectures**
2814 FloatingPointToken Floating point number
2815 HexDumpByteValueToken **Not emitted by architectures**
2816 HexDumpInvalidByteToken **Not emitted by architectures**
2817 HexDumpSkippedByteToken **Not emitted by architectures**
2818 HexDumpTextToken **Not emitted by architectures**
2819 ImportToken **Not emitted by architectures**
2820 IndirectImportToken **Not emitted by architectures**
2821 InstructionToken The instruction mnemonic
2822 IntegerToken Integers
2823 KeywordToken **Not emitted by architectures**
2824 LocalVariableToken **Not emitted by architectures**
2825 StackVariableToken **Not emitted by architectures**
2826 NameSpaceSeparatorToken **Not emitted by architectures**
2827 NameSpaceToken **Not emitted by architectures**
2828 OpcodeToken **Not emitted by architectures**
2829 OperandSeparatorToken The comma or delimiter that separates tokens
2830 PossibleAddressToken Integers that are likely addresses
2831 RegisterToken Registers
2832 StringToken **Not emitted by architectures**
2833 StructOffsetToken **Not emitted by architectures**
2834 TagToken **Not emitted by architectures**
2835 TextToken Used for anything not of another type.
2836 CommentToken Comments
2837 TypeNameToken **Not emitted by architectures**
2838 AddressSeparatorToken **Not emitted by architectures**
2839 ========================== ============================================
2840
2841 """
2842 type: Union[InstructionTextTokenType, int]
2843 text: str
2844 value: int = 0
2845 size: int = 0
2846 operand: int = 0xffffffff
2847 context: InstructionTextTokenContext = InstructionTextTokenContext.NoTokenContext
2848 address: int = 0
2849 confidence: int = core.max_confidence

Callers 5

_from_core_structMethod · 0.70
post_process_linesMethod · 0.70
M6502Class · 0.50
get_instruction_textMethod · 0.50
populate_nodesMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected