Path.Node.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final Class | |
| public static final String | |
| private static final Class | |
| private int | |
| private final Integer | |
| private static final String | |
| private static final String | |
| private final boolean | |
| public static final String | |
| private final Object | |
| private final ElementKind | |
| public static final String | |
| private static final Log | |
| public static final String | |
| public static final String | |
| private final String | |
| private final Integer | |
| private final Class | |
| private final NodeImpl | |
| public static final String | |
| private static final long | |
| private static final String | |
| private static final String | |
| private final Integer | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <T extends Path. | as(Class<T>
class object representing the descriptor type to narrow down to
to nodeType)Implements jakarta. |
| public final String | |
| public final int | |
| private String | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public Class | |
| public final Integer | |
| public final Object | |
| public ElementKind | getKind()
Implements jakarta. |
| public final String | getName()
Implements jakarta.
|
| public int | |
| public List | |
| public final NodeImpl | |
| public Integer | |
| public Object | |
| public int | |
| private static boolean | |
| public final boolean | |
| public final boolean | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public static NodeImpl | |
| public String | toString()
Overrides java. Implements jakarta. |
| asString | back to summary |
|---|---|
| private String asString | |
| containerClass | back to summary |
|---|---|
| private final Class<?> containerClass | |
| CROSS_PARAMETER_NODE_NAME | back to summary |
|---|---|
| public static final String CROSS_PARAMETER_NODE_NAME | |
| EMPTY_CLASS_ARRAY | back to summary |
|---|---|
| private static final Class<?>[] EMPTY_CLASS_ARRAY | |
| hashCode | back to summary |
|---|---|
| private int hashCode | |
| index | back to summary |
|---|---|
| private final Integer index | |
| INDEX_CLOSE | back to summary |
|---|---|
| private static final String INDEX_CLOSE | |
| INDEX_OPEN | back to summary |
|---|---|
| private static final String INDEX_OPEN | |
| isIterable | back to summary |
|---|---|
| private final boolean isIterable | |
| ITERABLE_ELEMENT_NODE_NAME | back to summary |
|---|---|
| public static final String ITERABLE_ELEMENT_NODE_NAME | |
| key | back to summary |
|---|---|
| private final Object key | |
| kind | back to summary |
|---|---|
| private final ElementKind kind | |
| LIST_ELEMENT_NODE_NAME | back to summary |
|---|---|
| public static final String LIST_ELEMENT_NODE_NAME | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| MAP_KEY_NODE_NAME | back to summary |
|---|---|
| public static final String MAP_KEY_NODE_NAME | |
| MAP_VALUE_NODE_NAME | back to summary |
|---|---|
| public static final String MAP_VALUE_NODE_NAME | |
| name | back to summary |
|---|---|
| private final String name | |
| parameterIndex | back to summary |
|---|---|
| private final Integer parameterIndex | |
| parameterTypes | back to summary |
|---|---|
| private final Class<?>[] parameterTypes | |
| parent | back to summary |
|---|---|
| private final NodeImpl parent | |
| RETURN_VALUE_NODE_NAME | back to summary |
|---|---|
| public static final String RETURN_VALUE_NODE_NAME | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TYPE_PARAMETER_CLOSE | back to summary |
|---|---|
| private static final String TYPE_PARAMETER_CLOSE | |
| TYPE_PARAMETER_OPEN | back to summary |
|---|---|
| private static final String TYPE_PARAMETER_OPEN | |
| typeArgumentIndex | back to summary |
|---|---|
| private final Integer typeArgumentIndex | |
| value | back to summary |
|---|---|
| private final Object value | |
| NodeImpl | back to summary |
|---|---|
| private NodeImpl(String name, NodeImpl parent, boolean isIterable, Integer index, Object key, ElementKind kind, Class<?>[] parameterTypes, Integer parameterIndex, Object value, Class<?> containerClass, Integer typeArgumentIndex) | |
| as | back to summary |
|---|---|
| public <T extends Path. Implements jakarta. Doc from jakarta. Narrows the type of this node down to the given type. The appropriate
type should be checked before by calling | |
| asString | back to summary |
|---|---|
| public final String asString() | |
| buildHashCode | back to summary |
|---|---|
| public final int buildHashCode() | |
| buildToString | back to summary |
|---|---|
| private String buildToString() | |
| createBeanNode | back to summary |
|---|---|
| public static NodeImpl createBeanNode(NodeImpl parent) | |
| createConstructorNode | back to summary |
|---|---|
| public static NodeImpl createConstructorNode(String name, NodeImpl parent, Class<?>[] parameterTypes) | |
| createContainerElementNode | back to summary |
|---|---|
| public static NodeImpl createContainerElementNode(String name, NodeImpl parent) | |
| createCrossParameterNode | back to summary |
|---|---|
| public static NodeImpl createCrossParameterNode(NodeImpl parent) | |
| createMethodNode | back to summary |
|---|---|
| public static NodeImpl createMethodNode(String name, NodeImpl parent, Class<?>[] parameterTypes) | |
| createParameterNode | back to summary |
|---|---|
| public static NodeImpl createParameterNode(String name, NodeImpl parent, int parameterIndex) | |
| createPropertyNode | back to summary |
|---|---|
| public static NodeImpl createPropertyNode(String name, NodeImpl parent) | |
| createReturnValue | back to summary |
|---|---|
| public static NodeImpl createReturnValue(NodeImpl parent) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) 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. | |
| getContainerClass | back to summary |
|---|---|
| public Class Implements jakarta.
| |
| getIndex | back to summary |
|---|---|
| public final Integer getIndex() Implements jakarta.
| |
| getKey | back to summary |
|---|---|
| public final Object getKey() Implements jakarta.
| |
| getKind | back to summary |
|---|---|
| public ElementKind getKind() Implements jakarta. Doc from jakarta. The kind of element represented by the node. The following relationship
between an
This is useful to narrow down the
switch(node.getKind() {
case METHOD:
name = node.getName();
params = node.as(MethodNode.class).getParameterTypes();
case PARAMETER:
index = node.as(ParameterNode.class).getParameterIndex();
[...]
}
| |
| getName | back to summary |
|---|---|
| public final String getName() Implements jakarta. Doc from jakarta. Returns the name of the element which the node represents:
| |
| getParameterIndex | back to summary |
|---|---|
| public int getParameterIndex() Implements jakarta.
| |
| getParameterTypes | back to summary |
|---|---|
| public List Implements jakarta.
| |
| getParent | back to summary |
|---|---|
| public final NodeImpl getParent() | |
| getTypeArgumentIndex | back to summary |
|---|---|
| public Integer getTypeArgumentIndex() Implements jakarta.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Implements org.
| |
| 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
| |
| includeTypeParameterInformation | back to summary |
|---|---|
| private static boolean includeTypeParameterInformation(Class<?> containerClass, Integer typeArgumentIndex) | |
| isInIterable | back to summary |
|---|---|
| public final boolean isInIterable() Implements jakarta.
| |
| isIterable | back to summary |
|---|---|
| public final boolean isIterable() | |
| makeIterable | back to summary |
|---|---|
| public static NodeImpl makeIterable(NodeImpl node) | |
| makeIterableAndSetIndex | back to summary |
|---|---|
| public static NodeImpl makeIterableAndSetIndex(NodeImpl node, Integer index) | |
| makeIterableAndSetMapKey | back to summary |
|---|---|
| public static NodeImpl makeIterableAndSetMapKey(NodeImpl node, Object key) | |
| setPropertyValue | back to summary |
|---|---|
| public static NodeImpl setPropertyValue(NodeImpl node, Object value) | |
| setTypeParameter | back to summary |
|---|---|
| public static NodeImpl setTypeParameter(NodeImpl node, Class<?> containerClass, Integer typeArgumentIndex) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements jakarta. Doc from jakarta. Returns a human-readable representation of this node. Clients should not rely on any specific structure of the returned value. Instead they should obtain any required information by calling the methods on this interface and its sub-types. | |