Class | Description |
---|---|
EmptyImportDeclaration |
A stray semicolon between the imports.
|
ImportDeclaration |
This class is a base class for classes representing import declarations.
|
NonEmptyImportDeclaration |
Common ancestor for all imports, aside EmptyImportDeclaration
|
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 can only store a Name. |
Copyright © 2007–2016. All rights reserved.