Class SimpleTypedNameDeclaration

  • All Implemented Interfaces:
    TypedNameDeclaration

    public class SimpleTypedNameDeclaration
    extends java.lang.Object
    implements TypedNameDeclaration
    Just stores a type image and a actual type. And makes it easy to compare these.
    • Constructor Detail

      • SimpleTypedNameDeclaration

        public SimpleTypedNameDeclaration​(java.lang.String typeImage,
                                          java.lang.Class<?> type)
        Creates a new SimpleTypedNameDeclaration with the given type
        Parameters:
        typeImage - the type image
        type - the actual type
      • SimpleTypedNameDeclaration

        public SimpleTypedNameDeclaration​(java.lang.String typeImage,
                                          java.lang.Class<?> type,
                                          SimpleTypedNameDeclaration next)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)

        Additionally - two SimpleTypedNameDeclaration are equal, if they contain types, that can be cast into each other.

        Overrides:
        equals in class java.lang.Object