Uses of Class
com.github.javaparser.ast.ImportDeclaration
Packages that use ImportDeclaration
Package
Description
Implementation of model based on JavaParser.
-
Uses of ImportDeclaration in com.github.javaparser
Fields in com.github.javaparser with type parameters of type ImportDeclarationModifier and TypeFieldDescriptionstatic final ParseStart
<ImportDeclaration> ParseStart.IMPORT_DECLARATION
Methods in com.github.javaparser that return ImportDeclarationModifier and TypeMethodDescriptionfinal ImportDeclaration
GeneratedJavaParser.ImportDeclaration()
Import declaration types are not differentiated in the class hierarchy.final ImportDeclaration
GeneratedJavaParser.ImportDeclarationParseStart()
JavaParserAdapter.parseImport
(String importDeclaration) static ImportDeclaration
StaticJavaParser.parseImport
(String importDeclaration) Parses the Java import contained in aString
and returns aImportDeclaration
that represents it.Methods in com.github.javaparser that return types with arguments of type ImportDeclarationModifier and TypeMethodDescriptionJavaParser.parseImport
(String importDeclaration) Parses the Java import contained in aString
and returns aImportDeclaration
that represents it. -
Uses of ImportDeclaration in com.github.javaparser.ast
Fields in com.github.javaparser.ast with type parameters of type ImportDeclarationMethods in com.github.javaparser.ast that return ImportDeclarationModifier and TypeMethodDescriptionImportDeclaration.clone()
CompilationUnit.getImport
(int i) ImportDeclaration.setAsterisk
(boolean isAsterisk) ImportDeclaration.setStatic
(boolean isStatic) Methods in com.github.javaparser.ast that return types with arguments of type ImportDeclarationModifier and TypeMethodDescriptionCompilationUnit.getImports()
Retrieves the list of imports declared in this compilation unit ornull
if there is no import.Methods in com.github.javaparser.ast with parameters of type ImportDeclarationModifier and TypeMethodDescriptionCompilationUnit.addImport
(ImportDeclaration importDeclaration) adds an import if not implicitly imported by java (i.e.CompilationUnit.getImportPackageName
(ImportDeclaration importDeclaration) private boolean
CompilationUnit.isImplicitImport
(ImportDeclaration importDeclaration) CompilationUnit.setImport
(int i, ImportDeclaration imports) Method parameters in com.github.javaparser.ast with type arguments of type ImportDeclarationModifier and TypeMethodDescriptionCompilationUnit.setImports
(NodeList<ImportDeclaration> imports) Sets the list of imports of this compilation unit.Constructor parameters in com.github.javaparser.ast with type arguments of type ImportDeclarationModifierConstructorDescriptionCompilationUnit
(PackageDeclaration packageDeclaration, NodeList<ImportDeclaration> imports, NodeList<TypeDeclaration<?>> types, ModuleDeclaration module) CompilationUnit
(TokenRange tokenRange, PackageDeclaration packageDeclaration, NodeList<ImportDeclaration> imports, NodeList<TypeDeclaration<?>> types, ModuleDeclaration module) This constructor is used by the parser and is considered private. -
Uses of ImportDeclaration in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type ImportDeclarationModifier and TypeMethodDescriptionCloneVisitor.visit
(ImportDeclaration n, Object arg) EqualsVisitor.visit
(ImportDeclaration n, Visitable arg) GenericListVisitorAdapter.visit
(ImportDeclaration n, A arg) GenericVisitor.visit
(ImportDeclaration n, A arg) GenericVisitorAdapter.visit
(ImportDeclaration n, A arg) GenericVisitorWithDefaults.visit
(ImportDeclaration n, A arg) HashCodeVisitor.visit
(ImportDeclaration n, Void arg) ModifierVisitor.visit
(ImportDeclaration n, A arg) NoCommentEqualsVisitor.visit
(ImportDeclaration n, Visitable arg) NoCommentHashCodeVisitor.visit
(ImportDeclaration n, Void arg) void
NodeFinderVisitor.visit
(ImportDeclaration n, Range arg) ObjectIdentityEqualsVisitor.visit
(ImportDeclaration n, Visitable arg) ObjectIdentityHashCodeVisitor.visit
(ImportDeclaration n, Void arg) void
VoidVisitor.visit
(ImportDeclaration n, A arg) void
VoidVisitorAdapter.visit
(ImportDeclaration n, A arg) void
VoidVisitorWithDefaults.visit
(ImportDeclaration n, A arg) -
Uses of ImportDeclaration in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type ImportDeclarationModifier and TypeMethodDescriptionvoid
DefaultPrettyPrinterVisitor.visit
(ImportDeclaration n, Void arg) void
PrettyPrintVisitor.visit
(ImportDeclaration n, Void arg) Deprecated.Method parameters in com.github.javaparser.printer with type arguments of type ImportDeclarationModifier and TypeMethodDescriptionprivate void
DefaultPrettyPrinterVisitor.printImports
(NodeList<ImportDeclaration> imports, Void arg) -
Uses of ImportDeclaration in com.github.javaparser.printer.configuration
Methods in com.github.javaparser.printer.configuration that return types with arguments of type ImportDeclarationModifier and TypeMethodDescriptionImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> imports) Sort the list of imports into groups.Method parameters in com.github.javaparser.printer.configuration with type arguments of type ImportDeclarationModifier and TypeMethodDescriptionImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> imports) Sort the list of imports into groups. -
Uses of ImportDeclaration in com.github.javaparser.printer.configuration.imports
Methods in com.github.javaparser.printer.configuration.imports that return types with arguments of type ImportDeclarationModifier and TypeMethodDescriptionDefaultImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) EclipseImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) IntelliJImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) Method parameters in com.github.javaparser.printer.configuration.imports with type arguments of type ImportDeclarationModifier and TypeMethodDescriptionDefaultImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) EclipseImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) IntelliJImportOrderingStrategy.sortImports
(NodeList<ImportDeclaration> nodes) -
Uses of ImportDeclaration in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type ImportDeclarationModifier and TypeMethodDescriptionDefaultVisitorAdapter.visit
(ImportDeclaration node, Boolean aBoolean)