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.void
boolean
Return whether or not this Type is in the imports.boolean
copy()
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:ImportList
Return a copy of this ImportList.- Specified by:
copy
in interfaceImportList
-
addImport
Add a fully-qualified type name to the imports. Returns the Type for the name.- Specified by:
addImport
in interfaceImportList
-
addImport
- Specified by:
addImport
in interfaceImportList
-
contains
Return whether or not this Type is in the imports.- Specified by:
contains
in interfaceImportList
-
contains
- Specified by:
contains
in interfaceImportList
-
lookup
Lookup just the className, without package name.- Specified by:
lookup
in interfaceImportList
-
getInOrderList
Return a list of imports as (packageName,className) pairs. The list is sorted lexicographically.- Specified by:
getInOrderList
in interfaceImportList
-