com.puppycrawl.tools.checkstyle.gui
Class ParseTreeModel
java.lang.Object
com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel
com.puppycrawl.tools.checkstyle.gui.ParseTreeModel
- All Implemented Interfaces:
- TreeTableModel, Serializable, TreeModel
public class ParseTreeModel
- extends AbstractTreeTableModel
The model that backs the parse tree in the GUI.
- Author:
- Lars Kühne
- See Also:
- Serialized Form
| Methods inherited from class com.puppycrawl.tools.checkstyle.gui.AbstractTreeTableModel |
addTreeModelListener, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getIndexOfChild, getRoot, isCellEditable, isLeaf, removeTreeModelListener, valueForPathChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParseTreeModel
public ParseTreeModel(DetailAST parseTree)
getColumnCount
public int getColumnCount()
- Returns:
- the number of available column.
getColumnName
public String getColumnName(int column)
- Parameters:
column - the column number
- Returns:
- the name for column number
column.
getColumnClass
public Class<?> getColumnClass(int column)
- Specified by:
getColumnClass in interface TreeTableModel- Overrides:
getColumnClass in class AbstractTreeTableModel
- Parameters:
column - the column number
- Returns:
- the type for column number
column.
getValueAt
public Object getValueAt(Object node,
int column)
- Parameters:
node - the nodecolumn - the column number
- Returns:
- the value to be displayed for node
node,
at column number column.
setValueAt
public void setValueAt(Object aValue,
Object node,
int column)
- Description copied from interface:
TreeTableModel
- Sets the value for node
node,
at column number column.
- Specified by:
setValueAt in interface TreeTableModel- Overrides:
setValueAt in class AbstractTreeTableModel
- Parameters:
aValue - the value to setnode - the node to set the value oncolumn - the column number
getChild
public Object getChild(Object parent,
int index)
getChildCount
public int getChildCount(Object parent)