MethodUsage

This is basically a MethodDeclaration with some TypeParameters defined. The defined TypeParameters can comes from the Method itself or from the surrounding types.

Author

Federico Tomassetti

Constructors

Link copied to clipboard
constructor(declaration: ResolvedMethodDeclaration)
constructor(declaration: ResolvedMethodDeclaration, paramTypes: List<ResolvedType>, returnType: ResolvedType)
constructor(declaration: ResolvedMethodDeclaration, paramTypes: List<ResolvedType>, returnType: ResolvedType, exceptionTypes: List<ResolvedType>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The erased signature of the method.
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getNoParams(): Int
Return the number of formal arguments accepted by this method.
Link copied to clipboard
Return the type of the formal argument at the given position.
Link copied to clipboard
The qualified signature of the method.
Link copied to clipboard
open fun getSignature(): String
The signature of the method.
Link copied to clipboard
open fun isReturnTypeSubstituable(otherMethodUsage: MethodUsage): Boolean
Link copied to clipboard
open fun isSameSignature(otherMethodUsage: MethodUsage): Boolean
Link copied to clipboard
open fun isSubSignature(otherMethodUsage: MethodUsage): Boolean
Link copied to clipboard
Link copied to clipboard
open fun replaceParamType(i: Int, replaced: ResolvedType): MethodUsage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun toString(): String
Link copied to clipboard