Package org.instancio.internal.nodes
Class NodeImpl
java.lang.Object
org.instancio.internal.nodes.NodeImpl
- All Implemented Interfaces:
Node
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NodeImpl
-
-
Method Details
-
getTargetClass
Description copied from interface:Node
Returns the target class of this node.If this node represents a field, generally the target class will be the same as
Field.getType()
. However, there are cases where the target class may differ, for example:- when a subtype is specified, then the node's target class will represent the subtype.
- when the node represents a generic type, then the target class will represent the resolved type argument.
- Specified by:
getTargetClass
in interfaceNode
- Returns:
- target class of this node, never
null
-
getField
Description copied from interface:Node
Returns the field of this node, if available. -
equals
-
hashCode
public int hashCode() -
toString
-