pytecode 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pytecode/__init__.py +22 -0
- pytecode/analysis.py +2402 -0
- pytecode/attributes.py +868 -0
- pytecode/bytes_utils.py +208 -0
- pytecode/class_reader.py +810 -0
- pytecode/class_writer.py +630 -0
- pytecode/constant_pool.py +196 -0
- pytecode/constant_pool_builder.py +844 -0
- pytecode/constants.py +208 -0
- pytecode/debug_info.py +319 -0
- pytecode/descriptors.py +791 -0
- pytecode/hierarchy.py +561 -0
- pytecode/info.py +123 -0
- pytecode/instructions.py +495 -0
- pytecode/jar.py +271 -0
- pytecode/labels.py +1041 -0
- pytecode/model.py +929 -0
- pytecode/modified_utf8.py +145 -0
- pytecode/operands.py +683 -0
- pytecode/py.typed +0 -0
- pytecode/transforms.py +954 -0
- pytecode/verify.py +1386 -0
- pytecode-0.0.1.dist-info/METADATA +218 -0
- pytecode-0.0.1.dist-info/RECORD +27 -0
- pytecode-0.0.1.dist-info/WHEEL +5 -0
- pytecode-0.0.1.dist-info/licenses/LICENSE +21 -0
- pytecode-0.0.1.dist-info/top_level.txt +1 -0
pytecode/__init__.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Python library for parsing, inspecting, manipulating, and emitting JVM class files.
|
|
2
|
+
|
|
3
|
+
Provides four top-level entry points:
|
|
4
|
+
|
|
5
|
+
- ``ClassReader`` — parse ``.class`` bytes into a ``ClassFile`` tree.
|
|
6
|
+
- ``ClassWriter`` — serialize a ``ClassFile`` tree back to ``.class`` bytes.
|
|
7
|
+
- ``ClassModel`` — mutable editing model with symbolic references and
|
|
8
|
+
label-aware code editing.
|
|
9
|
+
- ``JarFile`` — read, mutate, and rewrite JAR archives.
|
|
10
|
+
|
|
11
|
+
Additional submodules expose transforms, descriptors, analysis, hierarchy
|
|
12
|
+
resolution, validation, operands, labels, debug-info helpers, and the
|
|
13
|
+
underlying data types. See ``pytecode.transforms``, ``pytecode.analysis``,
|
|
14
|
+
``pytecode.verify``, and the other documented submodules for details.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from .class_reader import ClassReader
|
|
18
|
+
from .class_writer import ClassWriter
|
|
19
|
+
from .jar import JarFile
|
|
20
|
+
from .model import ClassModel
|
|
21
|
+
|
|
22
|
+
__all__ = ["ClassModel", "ClassReader", "ClassWriter", "JarFile"]
|