|
Forge - Parent 1.0.7-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Importer<O extends JavaSource<?>>
Method Summary | ||
---|---|---|
Import |
addImport(Class<?> type)
Add an import for the given Class type. |
|
Import |
addImport(Import imprt)
Add an import for the given Import type. |
|
Import |
addImport(String className)
Add an import by qualified class name. |
|
|
addImport(T type)
Add an import for the given JavaSource type. |
|
Import |
getImport(Class<?> type)
Get the Import for the given Class type, if it exists; otherwise, return null; |
|
Import |
getImport(Import imprt)
Get the Import of the given Import type, if it exists; otherwise, return null; |
|
Import |
getImport(String literalValue)
Get the Import for the given fully-qualified class name, if it exists; otherwise, return null; |
|
|
getImport(T type)
Get the Import for the given T type, if it exists; otherwise, return null; |
|
List<Import> |
getImports()
Get an immutable list of all Import s currently imported by this O |
|
boolean |
hasImport(Class<?> type)
Return whether or not this O has an import for the given Class type. |
|
boolean |
hasImport(Import imprt)
Return whether or not this O has the given Import type. |
|
boolean |
hasImport(String type)
Return whether or not this O has an import for the given fully-qualified class name. |
|
|
hasImport(T type)
Return whether or not this O has an import for the given T type. |
|
O |
removeImport(Class<?> type)
Remove any Import for the given Class type, if it exists; otherwise, do nothing; |
|
O |
removeImport(Import imprt)
Remove the given Import from this O instance, if it exists; otherwise, do nothing; |
|
O |
removeImport(String name)
Remove any Import for the given fully-qualified class name, if it exists; otherwise, do nothing; |
|
|
removeImport(T type)
Remove any Import for the given T type, if it exists; otherwise, do nothing; |
|
boolean |
requiresImport(Class<?> type)
Return whether or not this O could accept an import for the given Class type. |
|
boolean |
requiresImport(String type)
Return whether or not this O could accept an import for the given fully-qualified class name. |
|
String |
resolveType(String type)
Given a simple or qualified type, resolve that type against the available imports and return the referenced type. |
Method Detail |
---|
Import addImport(String className)
Import addImport(Class<?> type)
Class
type.
Import addImport(Import imprt)
Import
type.
<T extends JavaSource<?>> Import addImport(T type)
JavaSource
type.
boolean hasImport(Class<?> type)
O
has an import for the given Class
type.
boolean hasImport(String type)
O
has an import for the given fully-qualified class name.
boolean requiresImport(Class<?> type)
O
could accept an import for the given Class
type.
boolean requiresImport(String type)
O
could accept an import for the given fully-qualified class name.
<T extends JavaSource<T>> boolean hasImport(T type)
O
has an import for the given T
type.
boolean hasImport(Import imprt)
O
has the given Import
type.
Import getImport(String literalValue)
Import
for the given fully-qualified class name, if it exists; otherwise, return null;
Import getImport(Class<?> type)
Import
for the given Class
type, if it exists; otherwise, return null;
<T extends JavaSource<?>> Import getImport(T type)
Import
for the given T
type, if it exists; otherwise, return null;
Import getImport(Import imprt)
Import
of the given Import
type, if it exists; otherwise, return null;
O removeImport(String name)
Import
for the given fully-qualified class name, if it exists; otherwise, do nothing;
O removeImport(Class<?> type)
Import
for the given Class
type, if it exists; otherwise, do nothing;
<T extends JavaSource<?>> O removeImport(T type)
Import
for the given T
type, if it exists; otherwise, do nothing;
O removeImport(Import imprt)
Import
from this O
instance, if it exists; otherwise, do nothing;
List<Import> getImports()
Import
s currently imported by this O
String resolveType(String type)
|
Forge - Parent 1.0.7-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |