java.lang.Object
me.sbasalaev.tybyco.descriptors.JvmDescriptor
me.sbasalaev.tybyco.descriptors.JvmMethodDescriptor
Descriptor of a Java method or constructor.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJvmMethodDescriptor(JvmTypeOrVoid returnType, List<JvmType> argumentTypes) Creates new method descriptor with given argument and return types.JvmMethodDescriptor(JvmTypeOrVoid returnType, JvmType... argumentTypes) Creates new method descriptor with given argument and return types. -
Method Summary
Modifier and TypeMethodDescriptionReturns method descriptor with given argument types added at the end.Types of the arguments of this method.Returns method descriptor with the first argument removed.booleanWhether given object is equal to this method descriptor.erasure()The descriptor with erased types.inthashCode()booleanWhether the signature for the descriptor has generic elements.Binary method descriptor.Returns method descriptor with given argument types added at the beginning.Return type of this method orJvmVoidif it isvoid.toString()String representation of this method descriptor.withReturnType(JvmTypeOrVoid type) Returns method descriptor with the return type replaced by a given type.Methods inherited from class me.sbasalaev.tybyco.descriptors.JvmDescriptor
notGeneric
-
Constructor Details
-
JvmMethodDescriptor
Creates new method descriptor with given argument and return types. -
JvmMethodDescriptor
Creates new method descriptor with given argument and return types.
-
-
Method Details
-
argumentTypes
Types of the arguments of this method. -
returnType
Return type of this method orJvmVoidif it isvoid. -
prepend
Returns method descriptor with given argument types added at the beginning. -
append
Returns method descriptor with given argument types added at the end. -
dropFirst
Returns method descriptor with the first argument removed. -
withReturnType
Returns method descriptor with the return type replaced by a given type. -
isGeneric
public boolean isGeneric()Description copied from class:JvmDescriptorWhether the signature for the descriptor has generic elements. This method returnstrueif the signature contains type arguments or type variables.- Specified by:
isGenericin classJvmDescriptor
-
nonGenericString
Binary method descriptor.- Specified by:
nonGenericStringin classJvmDescriptor
-
erasure
The descriptor with erased types. -
toString
String representation of this method descriptor.- Specified by:
toStringin classJvmDescriptor
-
hashCode
public int hashCode() -
equals
Whether given object is equal to this method descriptor. Two method descriptors are equal if they have the same argument and return types.
-