public interface ImportList
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.
|
ImportList copy()
Type addImport(String name)
void addImport(Type type)
boolean contains(String name)
boolean contains(Type type)
Copyright © 2017 Oracle. All rights reserved.