Class TypeSignature

java.lang.Object
xyz.janboerman.scalaloader.bytecode.TypeSignature

public final class TypeSignature extends Object
This class is NOT part of the public API!
  • Field Details

    • OBJECT_TYPE_SIGNATURE

      public static final TypeSignature OBJECT_TYPE_SIGNATURE
  • Constructor Details

  • Method Details

    • isArray

      public boolean isArray()
    • hasTypeArguments

      public boolean hasTypeArguments()
    • hasTypeArguments

      public boolean hasTypeArguments(int n)
    • ofDescriptor

      public static TypeSignature ofDescriptor(String descriptor)
    • ofSignature

      public static TypeSignature ofSignature(String signature)
    • getTypeName

      public String getTypeName()
      The raw type (without type arguments) of this type. If this TypeSignature was constructed from an array signature, the raw type returned here is "array"
      Returns:
      "array" or the raw type without type arguments.
    • internalName

      public String internalName()
    • getTypeArguments

      public List<TypeSignature> getTypeArguments()
      The type arguments types of this type. If this TypeSignature was constructed from an array signature, the type arguments only contains one element.
      Returns:
      the type arguments, or the array component type.
    • countTypeArguments

      public int countTypeArguments()
    • getTypeArgument

      public TypeSignature getTypeArgument(int index)
    • toDescriptor

      public final String toDescriptor()
    • toSignature

      public final String toSignature()
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object