Class DeclarationsIntoElements
java.lang.Object
org.checkerframework.framework.type.DeclarationsIntoElements
A helper class that puts the declaration annotations from a method declaration back into the
corresponding Elements, so that they get stored in the bytecode by the compiler. It also adds
@Pure to the compiler-generated accessors of a record.
This is similar to TypesIntoElements but for declaration annotations.
This class deals with javac internals and liberally imports such classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstore(ProcessingEnvironment env, AnnotatedTypeFactory atypeFactory, ClassTree tree) The entry point.
-
Method Details
-
store
public static void store(ProcessingEnvironment env, AnnotatedTypeFactory atypeFactory, ClassTree tree) The entry point.- Parameters:
env- the processing environmentatypeFactory- the type factorytree- the ClassTree to process
-