|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectedu.ustc.cs.compile.platform.util.ASTView.core.ForwardsASTNode
class ForwardsASTNode
Defines the tree node in the content area.
Each ForwardsASTNode
corresponds to an ASTNode and has a field
referred to the directed parent ForwardsASTNode
in the content which
is a tree.
字段摘要 | |
---|---|
private int |
childIndex
The index of children. |
private java.util.ArrayList |
childrenList
The child ForwardsASTNodes of this ForwardsASTNode. |
private ForwardsASTNode |
parentNode
The directed parent ForwardsASTNode. |
private org.eclipse.jdt.core.dom.ASTNode |
selfNode
The ASTNode this ForwardsASTNode corresponds to. |
构造函数摘要 | |
---|---|
ForwardsASTNode()
|
方法摘要 | |
---|---|
void |
addChild(ForwardsASTNode child)
Adds a child. |
java.util.Enumeration |
children()
Returns the children of this ForwardsASTNode as an Enumeration. |
boolean |
getAllowsChildren()
Returns true if this ForwardsASTNode allows children. |
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
Gets a specific child ForwardsASTNode. |
int |
getChildCount()
Gets the number of the child ForwardsASTNode. |
int |
getChildIndex()
Gets the index in the children list of the parent. |
java.util.ArrayList |
getChildren()
Gets the list of the children ForwardsASTNodes. |
int |
getIndex(javax.swing.tree.TreeNode node)
Gets the index of a specific child ForwardsASTNode. |
javax.swing.tree.TreeNode |
getParent()
Gets the directed parent node. |
org.eclipse.jdt.core.dom.ASTNode |
getSelf()
Gets the corresponding ASTNode. |
boolean |
isLeaf()
Indicates whether this ForwardsASTNode is a leaf. |
void |
setChildIndex(int index)
Sets the index in the children list of my parent. |
void |
setParent(ForwardsASTNode parent)
Sets the parent ForwardsASTNode. |
void |
setSelf(org.eclipse.jdt.core.dom.ASTNode self)
Sets the corresponding ASTNode. |
java.lang.String |
toString()
Gets the string representation of this ForwardsASTNode. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
private java.util.ArrayList childrenList
private org.eclipse.jdt.core.dom.ASTNode selfNode
private ForwardsASTNode parentNode
private int childIndex
构造函数详细信息 |
---|
ForwardsASTNode()
方法详细信息 |
---|
public javax.swing.tree.TreeNode getParent()
javax.swing.tree.TreeNode
中的 getParent
public int getChildCount()
javax.swing.tree.TreeNode
中的 getChildCount
public javax.swing.tree.TreeNode getChildAt(int childIndex)
javax.swing.tree.TreeNode
中的 getChildAt
childIndex
- the index of the child (from 0)
public int getIndex(javax.swing.tree.TreeNode node)
javax.swing.tree.TreeNode
中的 getIndex
node
- the child ForwardsASTNode
public boolean getAllowsChildren()
javax.swing.tree.TreeNode
中的 getAllowsChildren
public boolean isLeaf()
javax.swing.tree.TreeNode
中的 isLeaf
public java.util.Enumeration children()
javax.swing.tree.TreeNode
中的 children
public void setParent(ForwardsASTNode parent)
parent
- the parent ForwardsASTNodepublic java.util.ArrayList getChildren()
public void addChild(ForwardsASTNode child)
child
- the ForwardsASTNode to be added.public org.eclipse.jdt.core.dom.ASTNode getSelf()
public void setSelf(org.eclipse.jdt.core.dom.ASTNode self)
self
- the ASTNode to be set.public int getChildIndex()
public void setChildIndex(int index)
index
- the index in the children list of my parent.public java.lang.String toString()
java.lang.Object
中的 toString
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |