1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.jvm
.pack
.constants
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Exported
;
15 * Properties that are associated with JAR files.
19 public interface JarProperty
21 /** The property based version ID. */
22 byte INT_JAR_VERSION_ID
=
25 /** Number of resources. */
29 /** Table of contents offset. */
33 /** Table of contents size. */
37 /** The hash code for the JAR name. */
41 /** The offset to the name of this JAR. */
45 /** The size of the JAR name. */
49 /** The manifest index. */
53 /** Boot initializer offset. */
54 byte OFFSET_BOOT_INIT
=
57 /** Boot initializer size. */
61 /** The entry pool for the starting class, used to reference data. */
62 byte MEMHANDLEID_START_POOL
=
66 * The class with the start method
67 * ({@link StaticClassProperty#INDEX_BOOT_METHOD}.
69 byte RCDX_START_CLASS
=
72 /** Static constant pool offset. */
73 byte OFFSET_STATIC_POOL
=
76 /** Static constant pool size. */
77 byte SIZE_STATIC_POOL
=
80 /** Runtime constant pool offset. */
81 byte OFFSET_RUNTIME_POOL
=
84 /** Runtime constant pool size. */
85 byte SIZE_RUNTIME_POOL
=
88 /** The base allocation size of arrays. */
89 byte SIZE_BASE_ARRAY
=
92 /** Attributes for the virtual machine. */
93 byte MEMHANDLEID_VM_ATTRIBUTES
=
96 /** The number of properties in the JAR. */
97 byte NUM_JAR_PROPERTIES
=