File: _address.py

package info (click to toggle)
python-sarif-python-om 1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 424 kB
  • sloc: python: 634; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This file was generated by jschema_to_python version 1.2.3.

import attr


@attr.s
class Address(object):
    """A physical or virtual address, or a range of addresses, in an 'addressable region' (memory or a binary file)."""

    absolute_address = attr.ib(default=-1, metadata={"schema_property_name": "absoluteAddress"})
    fully_qualified_name = attr.ib(default=None, metadata={"schema_property_name": "fullyQualifiedName"})
    index = attr.ib(default=-1, metadata={"schema_property_name": "index"})
    kind = attr.ib(default=None, metadata={"schema_property_name": "kind"})
    length = attr.ib(default=None, metadata={"schema_property_name": "length"})
    name = attr.ib(default=None, metadata={"schema_property_name": "name"})
    offset_from_parent = attr.ib(default=None, metadata={"schema_property_name": "offsetFromParent"})
    parent_index = attr.ib(default=-1, metadata={"schema_property_name": "parentIndex"})
    properties = attr.ib(default=None, metadata={"schema_property_name": "properties"})
    relative_address = attr.ib(default=None, metadata={"schema_property_name": "relativeAddress"})