| Package | Description |
|---|---|
| org.jboss.forge.parser.java |
| Modifier and Type | Method and Description |
|---|---|
Import |
Importer.addImport(Class<?> type)
Add an import for the given
Class type. |
Import |
Importer.addImport(Import imprt)
Add an import for the given
Import type. |
Import |
Importer.addImport(String className)
Add an import by qualified class name.
|
<T extends JavaSource<?>> |
Importer.addImport(T type)
Add an import for the given
JavaSource type. |
Import |
Importer.getImport(Class<?> type)
|
Import |
Importer.getImport(Import imprt)
|
Import |
Importer.getImport(String literalValue)
Get the
Import for the given fully-qualified class name, if it exists; otherwise, return null; |
<T extends JavaSource<?>> |
Importer.getImport(T type)
Get the
Import for the given T type, if it exists; otherwise, return null; |
Import |
Import.setName(String name) |
Import |
Import.setStatic(boolean value) |
| Modifier and Type | Method and Description |
|---|---|
List<Import> |
Importer.getImports()
Get an immutable list of all
Imports currently imported by this O |
| Modifier and Type | Method and Description |
|---|---|
Import |
Importer.addImport(Import imprt)
Add an import for the given
Import type. |
Import |
Importer.getImport(Import imprt)
|
boolean |
Importer.hasImport(Import imprt)
Return whether or not this
O has the given Import type. |
O |
Importer.removeImport(Import imprt)
Remove the given
Import from this O instance, if it exists; otherwise, do nothing; |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.