Class NamedStorageType
- java.lang.Object
-
- de.inetsoftware.jwebassembly.wasm.NamedStorageType
-
public class NamedStorageType extends java.lang.Object
A 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 instanceprivate
NamedStorageType(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 boolean
equals(java.lang.Object obj)
java.lang.String
geClassName()
Get the class name in which the filed is define.java.lang.String
getName()
Get the global unique name of the field.AnyType
getType()
Get the type.int
hashCode()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-