net.sourceforge.pmd.util.viewer.model
Class SimpleNodeTreeNodeAdapter
java.lang.Object
net.sourceforge.pmd.util.viewer.model.SimpleNodeTreeNodeAdapter
- All Implemented Interfaces:
- TreeNode
public class SimpleNodeTreeNodeAdapter
- extends Object
- implements TreeNode
provides the adapter for the tree model
- Version:
- $Id$
- Author:
- Boris Gruschko ( boris at gruschko.org )
SimpleNodeTreeNodeAdapter
public SimpleNodeTreeNodeAdapter(SimpleNodeTreeNodeAdapter parent,
Node node)
- constructs the node
- Parameters:
node
- underlying AST's node
getSimpleNode
public Node getSimpleNode()
- retrieves the underlying node
- Returns:
- AST node
getChildAt
public TreeNode getChildAt(int childIndex)
- Specified by:
getChildAt
in interface TreeNode
- See Also:
TreeNode.getChildAt(int)
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface TreeNode
- See Also:
TreeNode.getChildCount()
getParent
public TreeNode getParent()
- Specified by:
getParent
in interface TreeNode
- See Also:
TreeNode.getParent()
getIndex
public int getIndex(TreeNode node)
- Specified by:
getIndex
in interface TreeNode
- See Also:
TreeNode.getIndex(javax.swing.tree.TreeNode)
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface TreeNode
- See Also:
TreeNode.getAllowsChildren()
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface TreeNode
- See Also:
TreeNode.isLeaf()
children
public Enumeration<TreeNode> children()
- Specified by:
children
in interface TreeNode
- See Also:
TreeNode.children()
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2002-2015 InfoEther. All Rights Reserved.