java.lang.Object
me.sbasalaev.tybyco.descriptors.JvmDescriptor
me.sbasalaev.tybyco.descriptors.JvmTypeOrVoid
- All Implemented Interfaces:
JvmAnnotated
public abstract sealed class JvmTypeOrVoid
extends JvmDescriptor
implements JvmAnnotated
permits JvmType, JvmVoid
Descriptor and signature of a type or of a
void pseudotype.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionType annotations applied directly to this type.abstract booleanWhether given object is equal to this type.abstract JvmTypeOrVoiderasure()Non-generic erasure of this type.abstract StringGeneric signature of this type.abstract inthashCode()Hash code for this type.abstract StringNon-generic binary descriptor of this type.static JvmTypeOrVoidReturns a type that corresponds to given Java class.abstract JvmTypeOrVoidThis type with all the annotations removed.Methods inherited from class me.sbasalaev.tybyco.descriptors.JvmDescriptor
isGeneric, notGeneric, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface me.sbasalaev.tybyco.descriptors.JvmAnnotated
annotated, isDeeplyAnnotated, notDeeplyAnnotated
-
Method Details
-
ofClass
Returns a type that corresponds to given Java class. ReturnsJvmArrayTypefor an array class,JvmPrimitiveTypefor a primitive class,JvmVoidforvoid.class,JvmClassTypeotherwise.
- See Also:
-
annotations
Description copied from interface:JvmAnnotatedType annotations applied directly to this type.- Specified by:
annotationsin interfaceJvmAnnotated
-
unannotated
Description copied from interface:JvmAnnotatedThis type with all the annotations removed.- Specified by:
unannotatedin interfaceJvmAnnotated
-
erasure
Non-generic erasure of this type. The returned type is also stripped of all annotations. -
nonGenericString
Non-generic binary descriptor of this type.- Specified by:
nonGenericStringin classJvmDescriptor
-
genericString
Generic signature of this type. -
equals
Whether given object is equal to this type. Two types are equal if their representation in the bytecode is identical, i.e. bothnonGenericString()andgenericString()return the same value. Note, that equal types may have different sets of type annotations applied. -
hashCode
public abstract int hashCode()Hash code for this type.
-