public class NodeImpl extends Object implements Path.Node, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NodeImpl.BeanNodeImpl |
static class |
NodeImpl.ConstructorNodeImpl |
static class |
NodeImpl.CrossParameterNodeImpl |
static class |
NodeImpl.MethodNodeImpl |
static class |
NodeImpl.ParameterNodeImpl |
static class |
NodeImpl.PropertyNodeImpl |
static class |
NodeImpl.ReturnValueNodeImpl |
Constructor and Description |
---|
NodeImpl(String name)
Create a new NodeImpl instance.
|
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
appendNode(Path.Node node,
StringBuilder to)
Append a Node to the specified StringBuilder.
|
<T extends Path.Node> |
as(Class<T> nodeType) |
static NodeImpl |
atIndex(Integer index)
Get a NodeImpl indexed from the preceding node (or root).
|
static NodeImpl |
atKey(Object key)
Get a NodeImpl keyed from the preceding node (or root).
|
boolean |
equals(Object o) |
Integer |
getIndex() |
Object |
getKey() |
ElementKind |
getKind() |
String |
getName() |
int |
getParameterIndex() |
List<Class<?>> |
getParameterTypes() |
int |
hashCode() |
boolean |
isInIterable() |
void |
setIndex(Integer index)
Set the index of this node, implying
inIterable . |
void |
setInIterable(boolean inIterable)
|
void |
setKey(Object key)
Set the map key of this node, implying
inIterable . |
void |
setKind(ElementKind kind) |
void |
setName(String name) |
void |
setParameterIndex(Integer parameterIndex) |
void |
setParameterTypes(List<Class<?>> parameterTypes) |
String |
toString() |
public NodeImpl(String name)
name
- public static StringBuilder appendNode(Path.Node node, StringBuilder to)
node
- to
- public static NodeImpl atIndex(Integer index)
index
- public static NodeImpl atKey(Object key)
key
- public void setName(String name)
name
- the name to setpublic boolean isInIterable()
isInIterable
in interface Path.Node
public void setInIterable(boolean inIterable)
inIterable
- public void setIndex(Integer index)
inIterable
.index
- public void setParameterIndex(Integer parameterIndex)
public void setKey(Object key)
inIterable
.key
- public ElementKind getKind()
public void setKind(ElementKind kind)
public int getParameterIndex()
Copyright © 2010–2024 The Apache Software Foundation. All rights reserved.