Class ImportListImpl
java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.ImportListImpl
- All Implemented Interfaces:
ImportList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a fully-qualified type name to the imports.voidbooleanReturn whether or not this Type is in the imports.booleancopy()Return a copy of this ImportList.Return a list of imports as (packageName,className) pairs.Lookup just the className, without package name.
-
Constructor Details
-
ImportListImpl
public ImportListImpl()
-
-
Method Details
-
copy
Description copied from interface:ImportListReturn a copy of this ImportList.- Specified by:
copyin interfaceImportList
-
addImport
Add a fully-qualified type name to the imports. Returns the Type for the name.- Specified by:
addImportin interfaceImportList
-
addImport
- Specified by:
addImportin interfaceImportList
-
contains
Return whether or not this Type is in the imports.- Specified by:
containsin interfaceImportList
-
contains
- Specified by:
containsin interfaceImportList
-
lookup
Lookup just the className, without package name.- Specified by:
lookupin interfaceImportList
-
getInOrderList
Return a list of imports as (packageName,className) pairs. The list is sorted lexicographically.- Specified by:
getInOrderListin interfaceImportList
-