Class AbstractInvocationType
java.lang.Object
org.checkerframework.framework.util.typeinference8.types.AbstractExecutableType
org.checkerframework.framework.util.typeinference8.types.AbstractInvocationType
An inference type for a method or constructor invocation. This is a wrapper around
AnnotatedTypeMirror.AnnotatedExecutableType whose methods return AbstractType.-
Field Summary
Fields inherited from class org.checkerframework.framework.util.typeinference8.types.AbstractExecutableType
annotatedExecutableType, context, executableType, qualifierVars, typeFactory -
Constructor Summary
ConstructorsConstructorDescriptionAbstractInvocationType(AnnotatedTypeMirror.AnnotatedExecutableType annotatedExecutableType, ExecutableType executableType, ExpressionTree invocation, Java8InferenceContext context) Creates an invocation type for a method or constructor invocation. -
Method Summary
Modifier and TypeMethodDescriptiongetParameterTypes(Theta map, int size) Returns a list of the parameter types ofAbstractExecutableTypewhere the vararg parameter has been replaced by individual parameters so the result has lengthsize.getReturnType(Theta map) Returns the return type of this.Methods inherited from class org.checkerframework.framework.util.typeinference8.types.AbstractExecutableType
getAnnotatedType, getAnnotatedTypeVariables, getJavaType, getParameterTypes, getParameterTypes, getThrownTypes, getTypeVariables, hasTypeVariables, isVoid
-
Constructor Details
-
AbstractInvocationType
public AbstractInvocationType(AnnotatedTypeMirror.AnnotatedExecutableType annotatedExecutableType, ExecutableType executableType, ExpressionTree invocation, Java8InferenceContext context) Creates an invocation type for a method or constructor invocation.- Parameters:
annotatedExecutableType- annotated method or constructor typeexecutableType- the Java executable typeinvocation- a method or constructor invocationcontext- the context
-
-
Method Details
-
getReturnType
Returns the return type of this.- Specified by:
getReturnTypein classAbstractExecutableType- Parameters:
map- a mapping from type variable to inference variable- Returns:
- the return type of this
-
getParameterTypes
Description copied from class:AbstractExecutableTypeReturns a list of the parameter types ofAbstractExecutableTypewhere the vararg parameter has been replaced by individual parameters so the result has lengthsize.- Specified by:
getParameterTypesin classAbstractExecutableType- Parameters:
map- a mapping from type variable to inference variablesize- the number of parameters to return; used to expand the vararg- Returns:
- a list of the parameter types of
AbstractExecutableType, of lengthsize
-