edu.wpi.ebob.internal.inspect
Class InstanceNode

java.lang.Object
  extended by edu.wpi.ebob.internal.inspect.AbstractNode
      extended by edu.wpi.ebob.internal.inspect.InstanceNode
All Implemented Interfaces:
Node

public class InstanceNode
extends AbstractNode

represents an Instancein a tree.

Author:
Liam Morley

Field Summary
private  boolean hasCheckedForChildren
          implements lazy checking.
private  Instance instance
          the underlying instance.
 
Fields inherited from class edu.wpi.ebob.internal.inspect.AbstractNode
children
 
Constructor Summary
InstanceNode(Instance instance)
           
 
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.
 IClass getType()
          returns the Class object associated with this node.
 IObject getValue()
          returns null as a value for an instance node doesn't make sense; the "value" is the children.
 boolean hasChildren()
           
 
Methods inherited from class edu.wpi.ebob.internal.inspect.AbstractNode
addChild, getParent, getValueAsString, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hasCheckedForChildren

private boolean hasCheckedForChildren
implements lazy checking.


instance

private Instance instance
the underlying instance.

Constructor Detail

InstanceNode

public InstanceNode(Instance instance)
Parameters:
instance - the underlying instance for this node.
Method Detail

getChildren

public Node[] getChildren()
Description copied from interface: Node
returns the child nodes of this node, represented as objects.

Specified by:
getChildren in interface Node
Overrides:
getChildren in class AbstractNode
See Also:
Node.getChildren()

getImage

public org.eclipse.swt.graphics.Image getImage()
Description copied from interface: Node
returns the image that should be shown for this node.

Specified by:
getImage in interface Node
Overrides:
getImage in class AbstractNode
Returns:
null
See Also:
Node.getImage()

getName

public java.lang.String getName()
Description copied from interface: Node
the text label for this node.

See Also:
Node.getName()

getType

public IClass getType()
Description copied from interface: Node
returns the Class object associated with this node.

See Also:
Node.getType()

getValue

public IObject getValue()
returns null as a value for an instance node doesn't make sense; the "value" is the children.

See Also:
Node.getValue()

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface Node
Overrides:
hasChildren in class AbstractNode
Returns:
true if this node has children, false otherwise.
See Also:
Node.hasChildren()