Class AnnotationTransferVisitor
java.lang.Object
com.github.javaparser.ast.visitor.VoidVisitorAdapter<AnnotatedTypeMirror>
org.checkerframework.framework.ajava.AnnotationTransferVisitor
- All Implemented Interfaces:
com.github.javaparser.ast.visitor.VoidVisitor<AnnotatedTypeMirror>
public class AnnotationTransferVisitor
extends com.github.javaparser.ast.visitor.VoidVisitorAdapter<AnnotatedTypeMirror>
A visitor that adds all annotations from a
AnnotatedTypeMirror
to the corresponding
JavaParser type, including nested types like array components.
The AnnotatedTypeMirror
is passed as the secondary parameter to the visit methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(com.github.javaparser.ast.type.ArrayType target, AnnotatedTypeMirror type) void
visit
(com.github.javaparser.ast.type.ClassOrInterfaceType target, AnnotatedTypeMirror type) void
visit
(com.github.javaparser.ast.type.PrimitiveType target, AnnotatedTypeMirror type) void
visit
(com.github.javaparser.ast.type.TypeParameter target, AnnotatedTypeMirror type) Methods inherited from class com.github.javaparser.ast.visitor.VoidVisitorAdapter
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
AnnotationTransferVisitor
public AnnotationTransferVisitor()
-
-
Method Details
-
visit
- Specified by:
visit
in interfacecom.github.javaparser.ast.visitor.VoidVisitor<AnnotatedTypeMirror>
- Overrides:
visit
in classcom.github.javaparser.ast.visitor.VoidVisitorAdapter<AnnotatedTypeMirror>
-
visit
public void visit(com.github.javaparser.ast.type.ClassOrInterfaceType target, AnnotatedTypeMirror type) - Specified by:
visit
in interfacecom.github.javaparser.ast.visitor.VoidVisitor<AnnotatedTypeMirror>
- Overrides:
visit
in classcom.github.javaparser.ast.visitor.VoidVisitorAdapter<AnnotatedTypeMirror>
-
visit
- Specified by:
visit
in interfacecom.github.javaparser.ast.visitor.VoidVisitor<AnnotatedTypeMirror>
- Overrides:
visit
in classcom.github.javaparser.ast.visitor.VoidVisitorAdapter<AnnotatedTypeMirror>
-
visit
- Specified by:
visit
in interfacecom.github.javaparser.ast.visitor.VoidVisitor<AnnotatedTypeMirror>
- Overrides:
visit
in classcom.github.javaparser.ast.visitor.VoidVisitorAdapter<AnnotatedTypeMirror>
-