Package org.checkerframework.framework.stub
package org.checkerframework.framework.stub
-
ClassDescriptionHolds information about types parsed from annotation files (stub files or ajava files).Unit test for
AnnotationFileElementTypes.buildSigIndex(java.util.List<javax.lang.model.element.ExecutableElement>)andAnnotationFileElementTypes.findAnnotatedJdk(java.lang.Class<?>).This class has three static methods.The result of calling AnnotationFileParser.parse: the annotated types and declaration annotations from the file.An exception indicating a problem while parsing an annotation file.Information about a record component: the component's element, and whether there was an accessor in the stubs for that component.Information about a record from a stub file.Interface for sources of stub data.Utility class for annotation files (stub files and ajava files).The types of files that can contain annotations.In-memory index of a binary stub bundle: a single file combining the binary form of every.astubfile under one-Astubsdirectory, as written byBinaryStubFileGenerator's--bundlemode.Tests that a damaged binary stub bundle is reported as a malformed file, not a crash.Guards against build-wiring rot for the generated.astub.bin.gzresources.In-memory representation of a binary stub file: the annotated JDK (annotated-jdk.bin.gz) or the binary form of a built-in checker stub file (*.astub.bin.gz).Annotation data containing its class name and structural element value pairs.Represents a Class literal value.Annotation data for a single class or interface, including its members.Annotation data for a single record component (i.e., one entry in arecord Foo(A a, B b)header).Represents an Enum constant value.Annotation data for a single field.Annotation data for a single method or constructor.A simple name that refers to a constant, written'n'.An operation in a constant expression, evaluated where the stub file is read, byAnnotationConstants: a unary operation (written'u'), a binary operation ('b'), a conditional expression ('?'), or a cast ('x').Represents a type annotation with its type path, or a marker for a plain wildcard?(seeBinaryStubData.TypeAnno.UNBOUNDED_WILDCARD).Annotation data for a single type parameter (class-level or method-level).A single step in a type-annotation path, describing how to navigate from a base type to the component type that carries the annotation.Tests that a damaged binary stub file is reported as a malformed file, not as a crash.Test-only differential checker for the binary stub path.Applies annotation data from aBinaryStubData.ClassRecordto a checker'sAnnotationFileParser.AnnotationFileAnnotations.Unit test forBinaryStubReader.classRecordKind(javax.lang.model.element.ElementKind).End-to-end tests for the reader side of binary-Astubssupport:AnnotationFileElementTypes'sparseCommandLineStubLocation,parseCommandLineStubResource,commandLineBinaryStub, and theuseBinaryForCommandLineStubsgate.Checks, shape by shape, that a-Astubsfile gives the same types in its text form and in its binary form.File-based implementation ofAnnotationFileResource.JarEntry-based implementation ofAnnotationFileResource.Process Java source files to remove annotations that ought to be inferred.Tests that every form of annotation element value that Java permits (JLS 9.7.1) -- constant expressions (JLS 15.29), constants named in all the ways Java scopes them, text blocks, and nested annotations -- has the same value in a stub file as in Java source, whether the stub file is text-parsed (AnnotationFileParser) or read from its binary form (BinaryStubReader).Generates a stub file from a single class or an entire package.