public class FluentAPIGenerator extends Object
FluentAPIGenerators
Enum to keep it private. The only use of the enum
is to support fluent API generators so the checker can add @This
annotations on method
return types when these generators has been used. To check whether a method is created by any of
the generators defined in the FluentAPIGenerators
Enum and returns this
, simply
call the check(org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedExecutableType)
on the annotated type of the method signature.Constructor and Description |
---|
FluentAPIGenerator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
check(AnnotatedTypeMirror.AnnotatedExecutableType t)
Check if a method was generated by a known fluent API generator and returns its receiver.
|
public static boolean check(AnnotatedTypeMirror.AnnotatedExecutableType t)
t
- the annotated type of the method signaturetrue
if the method was created by any of the generators defined in FluentAPIGenerators
and returns this