Class NameAndType


  • public class NameAndType
    extends java.lang.Object
    Methods and fields are described by their name and type descriptor. NameAndType represents exactly that.
    • Constructor Summary

      Constructors 
      Constructor Description
      NameAndType​(java.lang.String name, Type type)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Check if an object is equal to this name and type.
      int hashCode()
      Returns a hash of the name and type.
      java.lang.String name()
      Returns the name.
      java.lang.String toString()
      Returns a string representation of the name and type.
      Type type()
      Returns the type.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NameAndType

        public NameAndType​(java.lang.String name,
                           Type type)
        Constructor.
    • Method Detail

      • name

        public java.lang.String name()
        Returns the name.
      • type

        public Type type()
        Returns the type.
      • toString

        public java.lang.String toString()
        Returns a string representation of the name and type.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Check if an object is equal to this name and type.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object to compare against.
        Returns:
        true if equal
      • hashCode

        public int hashCode()
        Returns a hash of the name and type.
        Overrides:
        hashCode in class java.lang.Object