Class ImportListImpl
java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.ImportListImpl
- All Implemented Interfaces:
ImportList
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a fully-qualified type name to the imports.void
private 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.private void
insertType
(Type type) Lookup just the className, without package name.private void
-
Field Details
-
imports
-
root
-
sortedImports
-
-
Constructor Details
-
ImportListImpl
public ImportListImpl()
-
-
Method Details
-
copy
Description copied from interface:ImportList
Return a copy of this ImportList.- Specified by:
copy
in interfaceImportList
-
clearRoot
private void clearRoot() -
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
-
insertType
-
updateRoot
private void updateRoot() -
getInOrderList
Return a list of imports as (packageName,className) pairs. The list is sorted lexicographically.- Specified by:
getInOrderList
in interfaceImportList
-