Class NamedStorageType


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

      • 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 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​(java.lang.String type,
                                 java.lang.String className,
                                 java.lang.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,
                                java.lang.String className,
                                java.lang.String name)
        Create a new instance
        Parameters:
        type - the type
        className - the class name like java/lang/Object
        name - 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object