Class NamedStorageType
- java.lang.Object
-
- de.inetsoftware.jwebassembly.wasm.NamedStorageType
-
public class NamedStorageType extends java.lang.ObjectA ValueType with a name for debug information.
-
-
Constructor Summary
Constructors Modifier Constructor Description NamedStorageType(ConstantRef ref, TypeManager types)Create a new instanceNamedStorageType(AnyType type, java.lang.String className, java.lang.String name)Create a new instanceNamedStorageType(java.lang.String className, FieldInfo field, TypeManager types)Create a new instanceprivateNamedStorageType(java.lang.String type, java.lang.String className, java.lang.String name, TypeManager types)Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgeClassName()Get the class name in which the filed is define.java.lang.StringgetName()Get the global unique name of the field.AnyTypegetType()Get the type.inthashCode()
-
-
-
Field Detail
-
type
private final AnyType type
-
className
private final java.lang.String className
-
name
private final java.lang.String name
-
-
Constructor Detail
-
NamedStorageType
public NamedStorageType(java.lang.String className, FieldInfo field, TypeManager types)Create a new instance- Parameters:
className- the parent className of the fieldfield- the FieldInfotypes- the type manager
-
NamedStorageType
public NamedStorageType(ConstantRef ref, TypeManager types)
Create a new instance- Parameters:
ref- the referencetypes- the type manager
-
NamedStorageType
private NamedStorageType(java.lang.String type, java.lang.String className, java.lang.String name, TypeManager types)Create a new instance- Parameters:
type- the typeclassName- the class namename- the nametypes- the type manager
-
NamedStorageType
public NamedStorageType(AnyType type, java.lang.String className, java.lang.String name)
Create a new instance- Parameters:
type- the typeclassName- the class name like java/lang/Objectname- the name
-
-
Method Detail
-
getType
public AnyType getType()
Get the type.- Returns:
- the type
-
geClassName
public java.lang.String geClassName()
Get the class name in which the filed is define.- Returns:
- the field
-
getName
public java.lang.String getName()
Get the global unique name of the field. See https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version2.md#struct-and-ref-types- Returns:
- the name
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-