public class JavadocNodeImpl extends java.lang.Object implements DetailNode
Modifier and Type | Field and Description |
---|---|
private DetailNode[] |
children
Array of child nodes.
|
private int |
columnNumber
Column number.
|
static JavadocNodeImpl[] |
EMPTY_DETAIL_NODE_ARRAY
Empty array of
DetailNode type. |
private int |
index
Node index among parent's children.
|
private int |
lineNumber
Line number.
|
private DetailNode |
parent
Parent node.
|
private java.lang.String |
text
Node's text content.
|
private int |
type
Node type.
|
Constructor and Description |
---|
JavadocNodeImpl() |
Modifier and Type | Method and Description |
---|---|
DetailNode[] |
getChildren()
Array of children.
|
int |
getColumnNumber()
Node column number.
|
int |
getIndex()
Node index among parent's children.
|
int |
getLineNumber()
Node line number.
|
DetailNode |
getParent()
Parent node.
|
java.lang.String |
getText()
Node text.
|
int |
getType()
Node type.
|
void |
setChildren(DetailNode... children)
Sets array of child nodes.
|
void |
setColumnNumber(int columnNumber)
Sets column number.
|
void |
setIndex(int index)
Sets node's index among parent's children.
|
void |
setLineNumber(int lineNumber)
Sets line number.
|
void |
setParent(DetailNode parent)
Sets parent node.
|
void |
setText(java.lang.String text)
Sets node's text content.
|
void |
setType(int type)
Sets node's type.
|
java.lang.String |
toString() |
public static final JavadocNodeImpl[] EMPTY_DETAIL_NODE_ARRAY
DetailNode
type.private int index
private int type
private java.lang.String text
private int lineNumber
private int columnNumber
private DetailNode[] children
private DetailNode parent
public int getType()
DetailNode
getType
in interface DetailNode
JavadocTokenTypes
public java.lang.String getText()
DetailNode
getText
in interface DetailNode
public int getLineNumber()
DetailNode
getLineNumber
in interface DetailNode
public int getColumnNumber()
DetailNode
getColumnNumber
in interface DetailNode
public DetailNode[] getChildren()
DetailNode
getChildren
in interface DetailNode
public DetailNode getParent()
DetailNode
getParent
in interface DetailNode
public int getIndex()
DetailNode
getIndex
in interface DetailNode
public void setType(int type)
type
- Node's type.public void setText(java.lang.String text)
text
- Node's text content.public void setLineNumber(int lineNumber)
lineNumber
- Line number.public void setColumnNumber(int columnNumber)
columnNumber
- Column number.public void setChildren(DetailNode... children)
children
- Array of child nodes.public void setParent(DetailNode parent)
parent
- Parent node.public void setIndex(int index)
index
- Node's index among parent's children.public java.lang.String toString()
toString
in class java.lang.Object