Class BaseTypeVisitor.FoundRequired
java.lang.Object
org.checkerframework.common.basetype.BaseTypeVisitor.FoundRequired
- Enclosing class:
BaseTypeVisitor<Factory extends GenericAnnotatedTypeFactory<?,?, ?, ?>>
Class that creates string representations of
AnnotatedTypeMirrors which are only
verbose if required to differentiate the two types.
It is protected so that a subclass that reports one of the message keys that take a
found/required pair, such as override.receiver, renders the pair the same way that this
class does.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionof(AnnotatedTypeMirror found, AnnotatedTypeMirror required) Creates string representations ofAnnotatedTypeMirrors which are only verbose if required to differentiate the two types.of(AnnotatedTypeMirror found, AnnotatedTypeParameterBounds required) Creates string representations ofAnnotatedTypeMirrorandAnnotatedTypeParameterBoundss which are only verbose if required to differentiate the two types.
-
Field Details
-
found
The found type. -
required
The required type.
-
-
Method Details
-
of
public static BaseTypeVisitor.FoundRequired of(AnnotatedTypeMirror found, AnnotatedTypeMirror required) Creates string representations ofAnnotatedTypeMirrors which are only verbose if required to differentiate the two types.- Parameters:
found- the found typerequired- the required type- Returns:
- a FoundRequired for the two types
-
of
public static BaseTypeVisitor.FoundRequired of(AnnotatedTypeMirror found, AnnotatedTypeParameterBounds required) Creates string representations ofAnnotatedTypeMirrorandAnnotatedTypeParameterBoundss which are only verbose if required to differentiate the two types.- Parameters:
found- the found typerequired- the required bounds- Returns:
- a FoundRequired for the type and the bounds
-