java.lang.Object
org.checkerframework.framework.util.typeinference8.types.InvocationType

public class InvocationType extends Object
A method type for an invocation of a method or constructor.
  • Constructor Details

  • Method Details

    • getInvocation

      public ExpressionTree getInvocation()
      Returns the method or constructor invocation.
      Returns:
      the method or constructor invocation
    • getJavaType

      public ExecutableType getJavaType()
      Returns the java method type.
      Returns:
      the java method type
    • getThrownTypes

      public List<? extends AbstractType> getThrownTypes(Theta map)
      Returns the thrown types.
      Parameters:
      map - a mapping from type variable to inference variable
      Returns:
      the thrown types
    • getReturnType

      public AbstractType getReturnType(Theta map)
      Returns the return type.
      Parameters:
      map - a mapping from type variable to inference variable
      Returns:
      the return type
    • getParameterTypes

      public List<AbstractType> getParameterTypes(Theta map, int size)
      Returns a list of the parameter types of InvocationType where the vararg parameter has been modified to match the arguments in expression.
      Parameters:
      map - a mapping from type variable to inference variable
      size - the number of parameters to return; used to expand the vararg
      Returns:
      a list of the parameter types of InvocationType where the vararg parameter has been modified to match the arguments in expression
    • getParameterTypes

      public List<AbstractType> getParameterTypes(Theta map)
      Returns the parameter types. (Varags are not expanded.)
      Parameters:
      map - a mapping from type variable to inference variable
      Returns:
      the parameter types
    • hasTypeVariables

      public boolean hasTypeVariables()
      Whether this method has type variables.
      Returns:
      whether this method has type variables.
    • getAnnotatedTypeVariables

      public List<? extends AnnotatedTypeMirror.AnnotatedTypeVariable> getAnnotatedTypeVariables()
      Returns the annotated type variables.
      Returns:
      the annotated type variables
    • getTypeVariables

      public List<? extends TypeVariable> getTypeVariables()
      Returns the type variables.
      Returns:
      the type variables
    • isVoid

      public boolean isVoid()
      Whether this method is void.
      Returns:
      whether this method is void
    • getAnnotatedType

      Returns the annotated method type.
      Returns:
      the annotated method type