Class NamedStorageType

java.lang.Object
de.inetsoftware.jwebassembly.wasm.NamedStorageType

public class NamedStorageType extends Object
A ValueType with a name for debug information.
  • Field Details

    • type

      private final AnyType type
    • className

      private final String className
    • name

      private final String name
  • Constructor Details

    • NamedStorageType

      public NamedStorageType(String className, FieldInfo field, TypeManager types)
      Create a new instance
      Parameters:
      className - the parent className of the field
      field - the FieldInfo
      types - the type manager
    • NamedStorageType

      public NamedStorageType(ConstantRef ref, TypeManager types)
      Create a new instance
      Parameters:
      ref - the reference
      types - the type manager
    • NamedStorageType

      private NamedStorageType(String type, String className, String name, TypeManager types)
      Create a new instance
      Parameters:
      type - the type
      className - the class name
      name - the name
      types - the type manager
    • NamedStorageType

      public NamedStorageType(AnyType type, String className, String name)
      Create a new instance
      Parameters:
      type - the type
      className - the class name like java/lang/Object
      name - the name
  • Method Details

    • getType

      public AnyType getType()
      Get the type.
      Returns:
      the type
    • geClassName

      public String geClassName()
      Get the class name in which the filed is define.
      Returns:
      the field
    • getName

      public 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 class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object