Class MethodType
- java.lang.Object
-
- com.github.javaparser.symbolsolver.resolution.typeinference.MethodType
-
public class MethodType extends Object
A MethodType is an ordered 4-tuple consisting of: 1. type parameters: the declarations of any type parameters of the method member. 2. argument types: a list of the types of the arguments to the method member. 3. return type: the return type of the method member. 4. throws clause: exception types declared in the throws clause of the method member. See JLS 8.2- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description MethodType(List<ResolvedTypeParameterDeclaration> typeParameters, List<ResolvedType> formalArgumentTypes, ResolvedType returnType, List<ResolvedType> exceptionTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MethodType
fromMethodUsage(MethodUsage methodUsage)
List<ResolvedType>
getExceptionTypes()
List<ResolvedType>
getFormalArgumentTypes()
ResolvedType
getReturnType()
List<ResolvedTypeParameterDeclaration>
getTypeParameters()
-
-
-
Constructor Detail
-
MethodType
public MethodType(List<ResolvedTypeParameterDeclaration> typeParameters, List<ResolvedType> formalArgumentTypes, ResolvedType returnType, List<ResolvedType> exceptionTypes)
-
-
Method Detail
-
fromMethodUsage
public static MethodType fromMethodUsage(MethodUsage methodUsage)
-
getTypeParameters
public List<ResolvedTypeParameterDeclaration> getTypeParameters()
-
getFormalArgumentTypes
public List<ResolvedType> getFormalArgumentTypes()
-
getReturnType
public ResolvedType getReturnType()
-
getExceptionTypes
public List<ResolvedType> getExceptionTypes()
-
-