public class NodeImpl extends Object implements Path.PropertyNode, Path.MethodNode, Path.ConstructorNode, Path.BeanNode, Path.ParameterNode, Path.ReturnValueNode, Path.CrossParameterNode, Path.ContainerElementNode, PropertyNode, ContainerElementNode, Serializable
Path.Node
.Modifier and Type | Field and Description |
---|---|
static String |
CROSS_PARAMETER_NODE_NAME |
static String |
ITERABLE_ELEMENT_NODE_NAME |
static String |
LIST_ELEMENT_NODE_NAME |
static String |
MAP_KEY_NODE_NAME |
static String |
MAP_VALUE_NODE_NAME |
static String |
RETURN_VALUE_NODE_NAME |
public static final String RETURN_VALUE_NODE_NAME
public static final String CROSS_PARAMETER_NODE_NAME
public static final String ITERABLE_ELEMENT_NODE_NAME
public static final String LIST_ELEMENT_NODE_NAME
public static final String MAP_KEY_NODE_NAME
public static final String MAP_VALUE_NODE_NAME
public static NodeImpl createContainerElementNode(String name, NodeImpl parent)
public static NodeImpl createParameterNode(String name, NodeImpl parent, int parameterIndex)
public static NodeImpl createMethodNode(String name, NodeImpl parent, Class<?>[] parameterTypes)
public static NodeImpl createConstructorNode(String name, NodeImpl parent, Class<?>[] parameterTypes)
public static NodeImpl makeIterableAndSetIndex(NodeImpl node, Integer index)
public static NodeImpl setTypeParameter(NodeImpl node, Class<?> containerClass, Integer typeArgumentIndex)
public final boolean isInIterable()
isInIterable
in interface Path.Node
public final boolean isIterable()
public Class<?> getContainerClass()
getContainerClass
in interface Path.BeanNode
getContainerClass
in interface Path.ContainerElementNode
getContainerClass
in interface Path.PropertyNode
public Integer getTypeArgumentIndex()
getTypeArgumentIndex
in interface Path.BeanNode
getTypeArgumentIndex
in interface Path.ContainerElementNode
getTypeArgumentIndex
in interface Path.PropertyNode
public final NodeImpl getParent()
public ElementKind getKind()
public List<Class<?>> getParameterTypes()
getParameterTypes
in interface Path.ConstructorNode
getParameterTypes
in interface Path.MethodNode
public int getParameterIndex()
getParameterIndex
in interface Path.ParameterNode
public Object getValue()
getValue
in interface ContainerElementNode
getValue
in interface PropertyNode
public String toString()
public final String asString()
public final int buildHashCode()
Copyright © 2007-2021 Red Hat, Inc. All Rights Reserved