public class ToIndexFileConverter extends com.github.javaparser.ast.visitor.GenericVisitorAdapter<Void,org.checkerframework.afu.scenelib.el.AElement>
An instance of the class represents conversion of 1 stub file, but the static main(String[])
method converts multiple stub files, instantiating the class multiple times.
Constructor and Description |
---|
ToIndexFileConverter(@Nullable com.github.javaparser.ast.PackageDeclaration pkgDecl,
List<com.github.javaparser.ast.ImportDeclaration> importDecls,
org.checkerframework.afu.scenelib.el.AScene scene) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Parse stub files and write out equivalent JAIFs.
|
Void |
visit(com.github.javaparser.ast.body.AnnotationDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.stmt.BlockStmt stmt,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.body.ConstructorDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.body.EnumConstantDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.body.EnumDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.body.FieldDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.body.InitializerDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.body.MethodDeclaration decl,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.expr.ObjectCreationExpr expr,
org.checkerframework.afu.scenelib.el.AElement elem) |
Void |
visit(com.github.javaparser.ast.expr.VariableDeclarationExpr expr,
org.checkerframework.afu.scenelib.el.AElement elem) |
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
public ToIndexFileConverter(@Nullable com.github.javaparser.ast.PackageDeclaration pkgDecl, List<com.github.javaparser.ast.ImportDeclaration> importDecls, org.checkerframework.afu.scenelib.el.AScene scene)
pkgDecl
- AST node for package declarationimportDecls
- AST nodes for import declarationsscene
- scene for visitor methods to fill inpublic static void main(String[] args)
args
- name of JAIF with annotation definition, followed by names of stub files to be
converted (if none given, program reads from standard input)public Void visit(com.github.javaparser.ast.body.AnnotationDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.stmt.BlockStmt stmt, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.body.ConstructorDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.body.EnumConstantDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.body.EnumDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.body.FieldDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.body.InitializerDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.body.MethodDeclaration decl, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.expr.ObjectCreationExpr expr, org.checkerframework.afu.scenelib.el.AElement elem)
public Void visit(com.github.javaparser.ast.expr.VariableDeclarationExpr expr, org.checkerframework.afu.scenelib.el.AElement elem)