public class JavadocNodeImpl extends Object implements DetailNode
Modifier and Type | Field and Description |
---|---|
static JavadocNodeImpl[] |
EMPTY_DETAIL_NODE_ARRAY
Empty array of
DetailNode 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.
|
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(String text)
Sets node's text content.
|
void |
setType(int type)
Sets node's type.
|
String |
toString() |
public static final JavadocNodeImpl[] EMPTY_DETAIL_NODE_ARRAY
DetailNode
type.public JavadocNodeImpl()
public int getType()
DetailNode
getType
in interface DetailNode
JavadocTokenTypes
public 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(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.Copyright © 2001–2018. All rights reserved.