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 TypeMethodDescriptionintbooleangetTypeArgument(int index) The type arguments types of this type.The raw type (without type arguments) of this type.inthashCode()booleanbooleanhasTypeArguments(int n) booleanisArray()static TypeSignatureofDescriptor(String descriptor) static TypeSignatureofSignature(String signature) final Stringfinal StringtoString()
-
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
-