Class AnnotatedTypes.TypeArguments

java.lang.Object
org.checkerframework.framework.util.AnnotatedTypes.TypeArguments
Enclosing class:
AnnotatedTypes

public static class AnnotatedTypes.TypeArguments extends Object
Class representing type arguments for a method, constructor, or method reference expression.
  • Field Details

    • typeArguments

      public final Map<TypeVariable,AnnotatedTypeMirror> typeArguments
      A mapping from TypeVariable to its annotated type argument.
    • uncheckedConversion

      public final boolean uncheckedConversion
      True if unchecked conversion was needed for inference.
    • needsDefaultedReturnType

      public final boolean needsDefaultedReturnType
      Whether type argument inference needs a defaulted return type.
    • typeArgumentsInferred

      public final boolean typeArgumentsInferred
      Whether typeArguments were 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)
      Parameters:
      typeArguments - a mapping from TypeVariable to its annotated type argument
      uncheckedConversion - whether unchecked conversion was needed for inference
      needsDefaultedReturnType - whether type argument inference needs a defaulted return type
      typeArgumentsInferred - whether typeArguments were inferred by the type checker, as opposed to written explicitly by the programmer at the call site