Skip to main content

method-emitter

method-emitter has one public function: emit_code(). Calling it prints the Java queue and stack method snippets transcribed from the supplied handout.

Install

python -m pip install method-emitter

Use

from method_emitter import emit_code
emit_code()

The snippets expect to be placed inside their corresponding generic linked queue or stack classes. The queue code uses QueueNode, frontLink, and rearLink; the stack code uses StackNode and topLink. The removeAll and countOccurrences methods call Objects.equals, so the containing Java source needs import java.util.Objects.

Metadata

Release files for method-emitter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for method-emitter 0.1.0
File Size Uploaded
method_emitter-0.1.0.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for method-emitter 0.1.0
File Interpreter ABI Platform
method_emitter-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.0 kB

Release files / method_emitter-0.1.0.tar.gz

Download URL method_emitter-0.1.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
037b9685e743dc70c11a4d390d67f9a5fba603387d9ea0e474f393ea7deceb28
BLAKE2b-256 checksum
How to use checksums
42625eca80fbdc94962d3caff0c6e65731d12cd6d6c0b44e41e6e969486979a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / method_emitter-0.1.0-py3-none-any.whl

Download URL method_emitter-0.1.0-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e28b1b68848a63315bcc5dc6f27999f0bf8f38fd7847eb0044cdb39e34d4be6
BLAKE2b-256 checksum
How to use checksums
75ce4e84e5416dc42130acdeec63ea3fe8c88f7ec4ad8bb9d04ecae58af13fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page