Class BuiltinTypeNode

java.lang.Object
introspector.model.AbstractNode
introspector.model.BuiltinTypeNode
All Implemented Interfaces:
Node, Serializable

public class BuiltinTypeNode extends AbstractNode implements Node
BuiltinTypeNode provides a Node implementation to represent any value whose type is built-in.
See Also:
  • Constructor Details

    • BuiltinTypeNode

      public BuiltinTypeNode(String name, Object value)
      Parameters:
      name - the name of the node
      value - the object to be wrapped by the node
      See Also:
    • BuiltinTypeNode

      public BuiltinTypeNode(String name, Object value, Class<?> type)
      Parameters:
      name - the name of the node
      value - the object to be wrapped by the node
      type - the type of the object wrapped by the node
      See Also:
  • Method Details

    • isLeaf

      public boolean isLeaf()
      A builtin node is leaf.
      Specified by:
      isLeaf in interface Node
      Returns:
      Whether the node is a leaf node (no children) or not
      See Also:
    • getChildren

      public List<Node> getChildren()
      A builtin node has no children.
      Specified by:
      getChildren in class AbstractNode
      Returns:
      The children of this node (null if there are no children)
      See Also: