public class ToIndexFileConverter
extends com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.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(com.github.javaparser.ast.PackageDeclaration pkgDecl,
java.util.List<com.github.javaparser.ast.ImportDeclaration> importDecls,
scenelib.annotations.el.AScene scene) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Parse stub files and write out equivalent JAIFs.
|
java.lang.Void |
visit(com.github.javaparser.ast.body.AnnotationDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.stmt.BlockStmt stmt,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.body.ConstructorDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.body.EnumConstantDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.body.EnumDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.body.FieldDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.body.InitializerDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.body.MethodDeclaration decl,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.expr.ObjectCreationExpr expr,
scenelib.annotations.el.AElement elem) |
java.lang.Void |
visit(com.github.javaparser.ast.expr.VariableDeclarationExpr expr,
scenelib.annotations.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
public ToIndexFileConverter(com.github.javaparser.ast.PackageDeclaration pkgDecl, java.util.List<com.github.javaparser.ast.ImportDeclaration> importDecls, scenelib.annotations.el.AScene scene)
pkgDecl
- AST node for package declarationimportDecls
- AST nodes for import declarationsscene
- scene for visitor methods to fill inpublic static void main(java.lang.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 java.lang.Void visit(com.github.javaparser.ast.body.AnnotationDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.stmt.BlockStmt stmt, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.body.ConstructorDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.body.EnumConstantDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.body.EnumDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.body.FieldDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.body.InitializerDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.body.MethodDeclaration decl, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.expr.ObjectCreationExpr expr, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>
public java.lang.Void visit(com.github.javaparser.ast.expr.VariableDeclarationExpr expr, scenelib.annotations.el.AElement elem)
visit
in interface com.github.javaparser.ast.visitor.GenericVisitor<java.lang.Void,scenelib.annotations.el.AElement>
visit
in class com.github.javaparser.ast.visitor.GenericVisitorAdapter<java.lang.Void,scenelib.annotations.el.AElement>