ClassNode
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final GenericsType[] | |
| private final ClassNode | |
| private String | |
| private boolean | |
| private boolean | |
| private ClassNode | |
| private final ClassNode[] | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static StringBuilder | |
| private boolean | checkGenerics(final ClassNode classNode)
Compares the bounds of this generics specification against the given type for compatibility. |
| private static boolean | Returns: true if generics are compatiblethe classnode from which we will compare generics types classNode, final ClassNode the bound to which the types will be compared bound)Given a parameterized type (List<String> for example), checks that its generic types are compatible with those from a bound. |
| private static String | |
| public ClassNode | |
| public String | |
| public ClassNode | |
| public ClassNode[] | |
| public boolean | isCompatibleWith(final ClassNode classNode)
Determines if the provided type is compatible with this specification. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| private static String |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final GenericsType[] EMPTY_ARRAY | |
| lowerBound | back to summary |
|---|---|
| private final ClassNode lowerBound | |
| name | back to summary |
|---|---|
| private String name | |
| placeholder | back to summary |
|---|---|
| private boolean placeholder | |
| resolved | back to summary |
|---|---|
| private boolean resolved | |
| type | back to summary |
|---|---|
| private ClassNode type | |
| upperBounds | back to summary |
|---|---|
| private final ClassNode[] upperBounds | |
| wildcard | back to summary |
|---|---|
| private boolean wildcard | |
| GenericsType | back to summary |
|---|---|
| public GenericsType(final ClassNode type, final ClassNode[] upperBounds, final ClassNode lowerBound) | |
| GenericsType | back to summary |
|---|---|
| public GenericsType(final ClassNode basicType) | |
| appendName | back to summary |
|---|---|
| private static StringBuilder appendName(final ClassNode theType, final StringBuilder sb) | |
| checkGenerics | back to summary |
|---|---|
| private boolean checkGenerics(final ClassNode classNode) Compares the bounds of this generics specification against the given type for compatibility. Ex: String would satisfy <? extends CharSequence>. | |
| compareGenericsWithBound | back to summary |
|---|---|
| private static boolean compareGenericsWithBound(final ClassNode classNode, final ClassNode bound) Given a parameterized type (List<String> for example), checks that its generic types are compatible with those from a bound. | |
| genericsBounds | back to summary |
|---|---|
| private static String genericsBounds(final ClassNode theType, final Set<String> visited) | |
| getLowerBound | back to summary |
|---|---|
| public ClassNode getLowerBound() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getType | back to summary |
|---|---|
| public ClassNode getType() | |
| getUpperBounds | back to summary |
|---|---|
| public ClassNode[] getUpperBounds() | |
| isCompatibleWith | back to summary |
|---|---|
| public boolean isCompatibleWith(final ClassNode classNode) Determines if the provided type is compatible with this specification. The check is complete, meaning that nested generics are also checked. | |
| isPlaceholder | back to summary |
|---|---|
| public boolean isPlaceholder() | |
| isResolved | back to summary |
|---|---|
| public boolean isResolved() | |
| isWildcard | back to summary |
|---|---|
| public boolean isWildcard() | |
| setName | back to summary |
|---|---|
| public void setName(final String name) | |
| setPlaceholder | back to summary |
|---|---|
| public void setPlaceholder(final boolean placeholder) | |
| setResolved | back to summary |
|---|---|
| public void setResolved(final boolean resolved) | |
| setType | back to summary |
|---|---|
| public void setType(final ClassNode type) | |
| setWildcard | back to summary |
|---|---|
| public void setWildcard(final boolean wildcard) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| private static String toString(final GenericsType gt, final Set<String> visited) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. that)Overrides java. |
| public String | |
| public int | |
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| GenericsTypeName | back to summary |
|---|---|
| public GenericsTypeName(final String name) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getName | back to summary |
|---|---|
| public String getName() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |