Class AnnotatedTypes.TypeArguments
java.lang.Object
org.checkerframework.framework.util.AnnotatedTypes.TypeArguments
- Enclosing class:
AnnotatedTypes
Class representing type arguments for a method, constructor, or method reference expression.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether type argument inference needs a defaulted return type.final Map<TypeVariable, AnnotatedTypeMirror> A mapping fromTypeVariableto its annotated type argument.final booleanWhethertypeArgumentswere inferred by the type checker, as opposed to written explicitly by the programmer at the call site.final booleanTrue if unchecked conversion was needed for inference. -
Constructor Summary
ConstructorsConstructorDescriptionTypeArguments(Map<TypeVariable, AnnotatedTypeMirror> typeArguments, boolean uncheckedConversion, boolean needsDefaultedReturnType, boolean typeArgumentsInferred) Creates aAnnotatedTypes.TypeArgumentsobject. -
Method Summary
-
Field Details
-
typeArguments
A mapping fromTypeVariableto its annotated type argument. -
uncheckedConversion
public final boolean uncheckedConversionTrue if unchecked conversion was needed for inference. -
needsDefaultedReturnType
public final boolean needsDefaultedReturnTypeWhether type argument inference needs a defaulted return type. -
typeArgumentsInferred
public final boolean typeArgumentsInferredWhethertypeArgumentswere inferred by the type checker, as opposed to written explicitly by the programmer at the call site.
-
-
Constructor Details
-
TypeArguments
public TypeArguments(Map<TypeVariable, AnnotatedTypeMirror> typeArguments, boolean uncheckedConversion, boolean needsDefaultedReturnType, boolean typeArgumentsInferred) Creates aAnnotatedTypes.TypeArgumentsobject.- Parameters:
typeArguments- a mapping fromTypeVariableto its annotated type argumentuncheckedConversion- whether unchecked conversion was needed for inferenceneedsDefaultedReturnType- whether type argument inference needs a defaulted return typetypeArgumentsInferred- whethertypeArgumentswere inferred by the type checker, as opposed to written explicitly by the programmer at the call site
-