This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:crosscompiler:fields_of_item [2014/02/10 13:39] – external edit 127.0.0.1 | dev:crosscompiler:fields_of_item [2022/09/30 10:20] (current) – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Use of Index, Offset and Address of the Item ====== | + | ====== Use of Index, Offset and Address of an Item ====== |
These fields have different meanings according to what a given item represents. | These fields have different meanings according to what a given item represents. | ||
- | **Note** Statements in brackets denote a type, e.g. [Class] means an item of type '' | + | **Note**: Statements in brackets denote a type, e.g. [Class] means an item of type '' |
==== Classes [Class] ==== | ==== Classes [Class] ==== | ||
Line 11: | Line 11: | ||
==== Arrays [Array] ==== | ==== Arrays [Array] ==== | ||
* //index//: Not used, always -1. | * //index//: Not used, always -1. | ||
- | * //offset//: Offset | + | * //offset//: Offset |
- | * // | + | * // |
==== Methoden [Method] ==== | ==== Methoden [Method] ==== | ||
- | * // | + | * // |
- | * // | + | * // |
- | * // | + | * // |
- | ==== Felder | + | ==== Fields |
- | <box right 30% | IMPORTANT | + | <box right 30% | IMPORTANT |
- | **Achtung:** bei konstanten, statischen Referenzen ist das Const-Flag (dpfConst) __nicht__ gesetzt, da diese wie normale, nicht konstante statische Felder zu behandeln sind. Dies weil auf solche Felder ein einmaliger Zugriff aus dem Klassenkonstruktor stattfindet! | + | **Important:** With constant and static references the const flag //dpfConst// will not be set. Such fields must be handled like regular non constant fields because the class constructor will access such a field exactly once. |
- | + | **Example:** | |
- | **Beispiel:** | + | |
static final Object o = new Object(); | static final Object o = new Object(); | ||
</ | </ | ||
- | - **Klassen-Felder | + | - **Class fields |
- | - Konstante Felder | + | - Constant fields |
* //index//: Not used, always -1. | * //index//: Not used, always -1. | ||
* //offset//: not used, always -1. | * //offset//: not used, always -1. | ||
* // | * // | ||
- | - Nicht konstante Felder | + | - Non-constant fields |
* //index//: not used, always -1. | * //index//: not used, always -1. | ||
- | * // | + | * // |
- | * // | + | * // |
- **Instanz-Felder [DataItem]: | - **Instanz-Felder [DataItem]: | ||
- | * // | + | * // |
- | * // | + | * // |
* // | * // | ||
- | ==== Konstanten | + | ==== Constants |
- | - **Zahlen | + | - **Numbers |
- | * // | + | * // |
- | * // | + | * // |
- | * // | + | * // |
- | - **Stings | + | - **Strings |
- | * // | + | * // |
- | * // | + | * // |
- | * // | + | * // |