Class VariableModel
java.lang.Object
org.htmlunit.corejs.javascript.tools.debugger.VariableModel
- All Implemented Interfaces:
TreeModel
,TreeTableModel
Tree model for script object inspection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
A variable node in the tree. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final VariableModel.VariableNode[]
EmptyVariableModel.VariableNode
array.private static final String[]
Serializable magic number.private static final Class<?>[]
Tree column types.private Dim
The debugger.private VariableModel.VariableNode
The root node. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new VariableModel.VariableModel
(Dim debugger, Object scope) Creates a new VariableModel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a TreeModelListener to this tree.private VariableModel.VariableNode[]
Returns an array of the children of the given node.Returns a child of the given node.int
getChildCount
(Object nodeObj) Returns the number of children of the given node.Class
<?> getColumnClass
(int column) Returns the type of value stored in the given column.int
Returns the number of columns.getColumnName
(int column) Returns the name of the given column.int
getIndexOfChild
(Object parentObj, Object childObj) Returns the index of a node under its parent.getRoot()
Returns the root node of the tree.Returns the value of the given node.getValueAt
(Object nodeObj, int column) Returns the value at the given cell.boolean
isCellEditable
(Object node, int column) Returns whether the given cell is editable.boolean
Returns whether the given node is a leaf node.void
Removes a TreeModelListener from this tree.void
setValueAt
(Object value, Object node, int column) Sets the value at the given cell.void
valueForPathChanged
(TreePath path, Object newValue)
-
Field Details
-
cNames
Serializable magic number. -
cTypes
Tree column types. -
CHILDLESS
EmptyVariableModel.VariableNode
array. -
debugger
The debugger. -
root
The root node.
-
-
Constructor Details
-
VariableModel
public VariableModel()Creates a new VariableModel. -
VariableModel
Creates a new VariableModel.
-
-
Method Details
-
getRoot
Returns the root node of the tree. -
getChildCount
Returns the number of children of the given node.- Specified by:
getChildCount
in interfaceTreeModel
-
getChild
Returns a child of the given node. -
isLeaf
Returns whether the given node is a leaf node. -
getIndexOfChild
Returns the index of a node under its parent.- Specified by:
getIndexOfChild
in interfaceTreeModel
-
isCellEditable
Returns whether the given cell is editable.- Specified by:
isCellEditable
in interfaceTreeTableModel
-
setValueAt
Sets the value at the given cell.- Specified by:
setValueAt
in interfaceTreeTableModel
-
addTreeModelListener
Adds a TreeModelListener to this tree.- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
Removes a TreeModelListener from this tree.- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
getColumnCount
public int getColumnCount()Returns the number of columns.- Specified by:
getColumnCount
in interfaceTreeTableModel
-
getColumnName
Returns the name of the given column.- Specified by:
getColumnName
in interfaceTreeTableModel
-
getColumnClass
Returns the type of value stored in the given column.- Specified by:
getColumnClass
in interfaceTreeTableModel
-
getValueAt
Returns the value at the given cell.- Specified by:
getValueAt
in interfaceTreeTableModel
-
children
Returns an array of the children of the given node. -
getValue
Returns the value of the given node.
-