org.glassfish.pfl.dynamic.codegen.spi
Interface ImportList

All Known Implementing Classes:
ImportListImpl

public interface ImportList


Method Summary
 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<org.glassfish.pfl.basic.contain.Pair<String,String>> getInOrderList()
          Return a list of imports as (packageName,className) pairs.
 Type lookup(String className)
          Lookup just the className, without package name.
 

Method Detail

copy

ImportList copy()
Return a copy of this ImportList.


addImport

Type addImport(String name)
Add a fully-qualified type name to the imports. Returns the Type for the name.


addImport

void addImport(Type type)

contains

boolean contains(String name)
Return whether or not this Type is in the imports.


contains

boolean contains(Type type)

lookup

Type lookup(String className)
Lookup just the className, without package name.


getInOrderList

List<org.glassfish.pfl.basic.contain.Pair<String,String>> getInOrderList()
Return a list of imports as (packageName,className) pairs. The list is sorted lexicographically.



Copyright © 2013 Oracle. All Rights Reserved.