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<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> typeParameters, List<com.github.javaparser.resolution.types.ResolvedType> formalArgumentTypes, com.github.javaparser.resolution.types.ResolvedType returnType, List<com.github.javaparser.resolution.types.ResolvedType> exceptionTypes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static MethodType
    fromMethodUsage(com.github.javaparser.resolution.MethodUsage methodUsage)
     
    List<com.github.javaparser.resolution.types.ResolvedType>
     
    List<com.github.javaparser.resolution.types.ResolvedType>
     
    com.github.javaparser.resolution.types.ResolvedType
     
    List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration>
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MethodType

      public MethodType(List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> typeParameters, List<com.github.javaparser.resolution.types.ResolvedType> formalArgumentTypes, com.github.javaparser.resolution.types.ResolvedType returnType, List<com.github.javaparser.resolution.types.ResolvedType> exceptionTypes)
  • Method Details

    • fromMethodUsage

      public static MethodType fromMethodUsage(com.github.javaparser.resolution.MethodUsage methodUsage)
    • getTypeParameters

      public List<com.github.javaparser.resolution.declarations.ResolvedTypeParameterDeclaration> getTypeParameters()
    • getFormalArgumentTypes

      public List<com.github.javaparser.resolution.types.ResolvedType> getFormalArgumentTypes()
    • getReturnType

      public com.github.javaparser.resolution.types.ResolvedType getReturnType()
    • getExceptionTypes

      public List<com.github.javaparser.resolution.types.ResolvedType> getExceptionTypes()