Package org.checkerframework.framework.stubifier


package org.checkerframework.framework.stubifier
  • Class
    Description
    Build-time generator that pre-parses .astub files into the binary stub format read by org.checkerframework.framework.stub.BinaryStubReader.
    Tests for BinaryStubFileGenerator's two modes (per-file siblings, and a whole-directory --bundle), and for the source-fingerprint staleness detection that BinaryStubData.matchesSource(byte[]) provides for a user-supplied -Astubs file (see AnnotationFileElementTypes#commandLineBinaryStub, which relies on it instead of comparing file modification times).
    Writes parsed stub compilation units into the compressed binary stub format read by org.checkerframework.framework.stub.BinaryStubReader.
    Tests for BinaryStubWriter.
    Encloses BinaryStubWriterTest.Enclosing.DoublyNested, whose binary name has two $ separators.
    An annotation two levels deep, to exercise more than one nesting separator.
    Rewrites Java source files, in place, into minimal stub files, and also generates the compressed binary stub file (BinaryStubWriter.OUTPUT_FILENAME) for the same directory from the same parsed compilation units.
    Regression test for a bug where JavaStubifier's BinaryStubWriter was held in a private static final field: since main can process several directories in one invocation, and a BinaryStubWriter accumulates every class passed to process in instance fields with no reset between calls, reusing one writer across directories made each directory's own annotated-jdk.bin.gz also contain every earlier directory's classes.