Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast | |
com.github.javaparser.ast.imports | |
com.github.javaparser.ast.visitor |
Class and Description |
---|
ImportDeclaration
This class is a base class for classes representing import declarations.
|
Class and Description |
---|
ImportDeclaration
This class is a base class for classes representing import declarations.
|
Class and Description |
---|
ImportDeclaration
This class is a base class for classes representing import declarations.
|
SingleStaticImportDeclaration
Example:
import static com.github.javaparser.JavaParser.parse;
In the example, "com.github.javaparser.JavaParser" is the type,
and "parse" is the staticMember. |
SingleTypeImportDeclaration
Example:
import com.github.javaparser.JavaParser; |
StaticImportOnDemandDeclaration
Example:
import static com.github.javaparser.JavaParser.*; |
Class and Description |
---|
EmptyImportDeclaration
A stray semicolon between the imports.
|
SingleStaticImportDeclaration
Example:
import static com.github.javaparser.JavaParser.parse;
In the example, "com.github.javaparser.JavaParser" is the type,
and "parse" is the staticMember. |
SingleTypeImportDeclaration
Example:
import com.github.javaparser.JavaParser; |
StaticImportOnDemandDeclaration
Example:
import static com.github.javaparser.JavaParser.*; |
TypeImportOnDemandDeclaration
Examples:
import com.github.javaparser.*;
import com.github.javaparser.JavaParser.*;
Since a parser cannot differentiate between a type name and a package name, we simply store a NameExpr. |
Copyright © 2007–2016. All rights reserved.