Package | Description |
---|---|
com.github.javaparser.ast.imports |
Modifier and Type | Class and Description |
---|---|
class |
SingleStaticImportDeclaration
Example:
import static com.github.javaparser.JavaParser.parse;
In the example, "com.github.javaparser.JavaParser" is the type,
and "parse" is the staticMember. |
class |
SingleTypeImportDeclaration
Example:
import com.github.javaparser.JavaParser; |
class |
StaticImportOnDemandDeclaration
Example:
import static com.github.javaparser.JavaParser.*; |
class |
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.