edu.wpi.ebob.internal.inspect
Interface Node

All Known Subinterfaces:
ModifiableNode
All Known Implementing Classes:
AbstractNode, ArrayItemNode, FieldNode, InstanceNode, ReturnValueNode, RootNode

public interface Node

Represents a node in a tree.

Author:
Liam Morley

Method Summary
 Node[] getChildren()
          returns the child nodes of this node, represented as objects.
 org.eclipse.swt.graphics.Image getImage()
          returns the image that should be shown for this node.
 java.lang.String getName()
          the text label for this node.
 Node getParent()
          the parent node of this node.
 IClass getType()
          returns the Class object associated with this node.
 IObject getValue()
          the underlying value for this node.
 java.lang.String getValueAsString()
          a textual representation of the value.
 boolean hasChildren()
           
 void setParent(Node parent)
          sets the parent of this node to be parent.
 

Method Detail

getName

java.lang.String getName()
the text label for this node.


getValue

IObject getValue()
the underlying value for this node.


getValueAsString

java.lang.String getValueAsString()
a textual representation of the value.


getParent

Node getParent()
the parent node of this node.


setParent

void setParent(Node parent)
sets the parent of this node to be parent.


hasChildren

boolean hasChildren()
Returns:
true if this node has children, false otherwise.

getChildren

Node[] getChildren()
returns the child nodes of this node, represented as objects.


getImage

org.eclipse.swt.graphics.Image getImage()
returns the image that should be shown for this node.


getType

IClass getType()
returns the Class object associated with this node.