Class TypeSignature
java.lang.Object
xyz.janboerman.scalaloader.bytecode.TypeSignature
This class is NOT part of the public API!
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getTypeArgument
(int index) The type arguments types of this type.The raw type (without type arguments) of this type.int
hashCode()
boolean
boolean
hasTypeArguments
(int n) boolean
isArray()
static TypeSignature
ofDescriptor
(String descriptor) static TypeSignature
ofSignature
(String signature) final String
final String
toString()
-
Field Details
-
OBJECT_TYPE_SIGNATURE
-
-
Constructor Details
-
TypeSignature
-
-
Method Details
-
isArray
public boolean isArray() -
hasTypeArguments
public boolean hasTypeArguments() -
hasTypeArguments
public boolean hasTypeArguments(int n) -
ofDescriptor
-
ofSignature
-
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
-
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
-
toDescriptor
-
toSignature
-
hashCode
public int hashCode() -
equals
-
toString
-