| Modifier and Type | Class and Description |
|---|---|
| private abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private ImportListImpl. | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Type | addImport(final String name)
Implements org. Add a fully-qualified type name to the imports. |
| public void | |
| private void | |
| public boolean | contains(final String name)
Implements org. Return whether or not this Type is in the imports. |
| public boolean | |
| public ImportList | copy()
Implements org. Return a copy of this ImportList. |
| public List | getInOrderList()
Implements org. Return a list of imports as (packageName,className) pairs. |
| private void | |
| public Type | lookup(final String className)
Implements org. Lookup just the className, without package name. |
| private void |
| imports | back to summary |
|---|---|
| private Map<String, Type> imports | |
| root | back to summary |
|---|---|
| private ImportListImpl. | |
| sortedImports | back to summary |
|---|---|
| private List<Pair<String, String>> sortedImports | |
| ImportListImpl | back to summary |
|---|---|
| public ImportListImpl() | |
| addImport | back to summary |
|---|---|
| public Type addImport(final String name) Implements org. Add a fully-qualified type name to the imports. Returns the Type for the name. | |
| addImport | back to summary |
|---|---|
| public void addImport(final Type type) Implements org. | |
| clearRoot | back to summary |
|---|---|
| private void clearRoot() | |
| contains | back to summary |
|---|---|
| public boolean contains(final String name) Implements org. Return whether or not this Type is in the imports. | |
| contains | back to summary |
|---|---|
| public boolean contains(final Type type) Implements org. | |
| copy | back to summary |
|---|---|
| public ImportList copy() Implements org. Doc from org. Return a copy of this ImportList. | |
| getInOrderList | back to summary |
|---|---|
| public List Implements org. Return a list of imports as (packageName,className) pairs. The list is sorted lexicographically. | |
| insertType | back to summary |
|---|---|
| private void insertType(final Type type) | |
| lookup | back to summary |
|---|---|
| public Type lookup(final String className) Implements org. Lookup just the className, without package name. | |
| updateRoot | back to summary |
|---|---|
| private void updateRoot() | |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public List | |
| public final int | compareTo(final ImportListImpl.
Implements java. Compares this object with the specified object for order. |
| public void | depthFirst(final UnaryVoidFunction<ImportListImpl.
References Deprecated
UnaryVoidFunction is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public ImportListImpl. | |
| public static ImportListImpl. | |
| public static ImportListImpl. | |
| public final String | |
| public void | |
| public Type |
| name | back to summary |
|---|---|
| private final String name | |
| Node | back to summary |
|---|---|
| private Node(final String name) | |
| add | back to summary |
|---|---|
| public void add(final ImportListImpl. | |
| children | back to summary |
|---|---|
| public List | |
| compareTo | back to summary |
|---|---|
| public final int compareTo(final ImportListImpl. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| depthFirst | back to summary |
|---|---|
| public void depthFirst(final UnaryVoidFunction<ImportListImpl. References Deprecated
See corresponding docs for further information. | |
| find | back to summary |
|---|---|
| public ImportListImpl. | |
| makeListNode | back to summary |
|---|---|
| public static ImportListImpl. | |
| makeTypeNode | back to summary |
|---|---|
| public static ImportListImpl. | |
| name | back to summary |
|---|---|
| public final String name() | |
| sort | back to summary |
|---|---|
| public void sort() | |
| type | back to summary |
|---|---|
| public Type type() | |