Top Methods
org.glassfish.pfl.dynamic.codegen.spi

public Interface ImportList

Known Direct Implementers
org.glassfish.pfl.dynamic.codegen.impl.ImportListImpl
Imports
java.util.List, org.glassfish.pfl.basic.contain.Pair

Method Summary

Modifier and TypeMethod and Description
public Type
addImport(final String name)

Add a fully-qualified type name to the imports.

public void
addImport(final Type type)

public boolean
contains(final String name)

Return whether or not this Type is in the imports.

public boolean
contains(final Type type)

public ImportList
copy()

Return a copy of this ImportList.

public List<Pair<String, String>>
getInOrderList()

Return a list of imports as (packageName,className) pairs.

public Type
lookup(final String className)

Lookup just the className, without package name.

Method Detail

addImportback to summary
public Type addImport(final String name)

Add a fully-qualified type name to the imports. Returns the Type for the name.

addImportback to summary
public void addImport(final Type type)
containsback to summary
public boolean contains(final String name)

Return whether or not this Type is in the imports.

containsback to summary
public boolean contains(final Type type)
copyback to summary
public ImportList copy()

Return a copy of this ImportList.

getInOrderListback to summary
public List<Pair<String, String>> getInOrderList()

Return a list of imports as (packageName,className) pairs. The list is sorted lexicographically.

lookupback to summary
public Type lookup(final String className)

Lookup just the className, without package name.