Class TypeArgument


public final class TypeArgument extends HierarchicalTypeSignature
A type argument.
  • Method Details

    • getWildcard

      public TypeArgument.Wildcard getWildcard()
      Get the type wildcard, which is one of {NONE, ANY, EXTENDS, SUPER}.
      Returns:
      The type wildcard.
    • getTypeSignature

      public ReferenceTypeSignature getTypeSignature()
      Get the type signature associated with the wildcard (or null, if the wildcard is ANY).
      Returns:
      The type signature.
    • findReferencedClassNames

      public void findReferencedClassNames(Set<String> refdClassNames)
      Get the names of any classes referenced in the type signature.
      Parameters:
      refdClassNames - the referenced class names.
    • hashCode

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

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

      public String toStringWithSimpleNames()
      Render to string, using only simple names for classes.
      Returns:
      the string representation, using simple names for classes.
    • toString

      public String toString()
      Render to string.
      Overrides:
      toString in class Object
      Returns:
      the string representation.