Class TypeManager
java.lang.Object
de.inetsoftware.jwebassembly.module.TypeManager
Manage the written and to write types (classes)
- Author:
- Volker Berlin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA type that can use for a blockstatic classA reference to a type.static enumThe kind of type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intType id of primitive classstatic final intType id of primitive classstatic final intType id of primitive classstatic final intType id of primitive classstatic final StringName of field with array value.static final intType id of primitive classstatic final intType id of primitive classstatic final intType id of primitive classstatic final intType id of primitive classstatic final intByte position in the type description that contains the type of the array (component type).static final intByte position in the type description that contains the offset to the instanceof list.static final intByte position in the type description that contains the offset to the interfaces.static final intByte position in the type description that contains the offset to class name idx in the string constant table.static final intType id of primitive class -
Method Summary
-
Field Details
-
FIELD_VALUE
-
TYPE_DESCRIPTION_INTERFACE_OFFSET
public static final int TYPE_DESCRIPTION_INTERFACE_OFFSETByte position in the type description that contains the offset to the interfaces. Length 4 bytes.- See Also:
-
TYPE_DESCRIPTION_INSTANCEOF_OFFSET
public static final int TYPE_DESCRIPTION_INSTANCEOF_OFFSETByte position in the type description that contains the offset to the instanceof list. Length 4 bytes.- See Also:
-
TYPE_DESCRIPTION_TYPE_NAME
public static final int TYPE_DESCRIPTION_TYPE_NAMEByte position in the type description that contains the offset to class name idx in the string constant table. Length 4 bytes.- See Also:
-
TYPE_DESCRIPTION_ARRAY_TYPE
public static final int TYPE_DESCRIPTION_ARRAY_TYPEByte position in the type description that contains the type of the array (component type). Length 4 bytes.- See Also:
-
BOOLEAN
public static final int BOOLEANType id of primitive class- See Also:
-
BYTE
public static final int BYTEType id of primitive class- See Also:
-
CHAR
public static final int CHARType id of primitive class- See Also:
-
DOUBLE
public static final int DOUBLEType id of primitive class- See Also:
-
FLOAT
public static final int FLOATType id of primitive class- See Also:
-
INT
public static final int INTType id of primitive class- See Also:
-
LONG
public static final int LONGType id of primitive class- See Also:
-
SHORT
public static final int SHORTType id of primitive class- See Also:
-
VOID
public static final int VOIDType id of primitive class- See Also:
-
-
Method Details
-
size
public int size()Count of used types- Returns:
- the count
-
valueOf
Get the StructType. If needed an instance is created.- Parameters:
name- the type name like java/lang/Object- Returns:
- the struct type
-
arrayType
-