public class ImportListImpl extends Object implements ImportList
| Constructor and Description |
|---|
ImportListImpl() |
| Modifier and Type | Method and Description |
|---|---|
Type |
addImport(String name)
Add a fully-qualified type name to the imports.
|
void |
addImport(Type type) |
boolean |
contains(String name)
Return whether or not this Type is in the imports.
|
boolean |
contains(Type type) |
ImportList |
copy()
Return a copy of this ImportList.
|
List<Pair<String,String>> |
getInOrderList()
Return a list of imports as (packageName,className) pairs.
|
Type |
lookup(String className)
Lookup just the className, without package name.
|
public ImportList copy()
ImportListcopy in interface ImportListpublic Type addImport(String name)
addImport in interface ImportListpublic void addImport(Type type)
addImport in interface ImportListpublic boolean contains(String name)
contains in interface ImportListpublic boolean contains(Type type)
contains in interface ImportListpublic Type lookup(String className)
lookup in interface ImportListpublic List<Pair<String,String>> getInOrderList()
getInOrderList in interface ImportListCopyright © 2017 Oracle. All rights reserved.