Class JavadocNodeImpl
java.lang.Object
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl
- All Implemented Interfaces:
DetailNode
Implementation of DetailNode interface that is mutable.
-
Field Summary
Modifier and TypeFieldDescriptionprivate DetailNode[]
Array of child nodes.private int
Column number.static final JavadocNodeImpl[]
Empty array ofDetailNode
type.private int
Node index among parent's children.private int
Line number.private DetailNode
Parent node.private String
Node's text content.private int
Node type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionArray of children.int
Node column number.int
getIndex()
Node index among parent's children.int
Node line number.Parent node.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
Sets node's text content.void
setType
(int type) Sets node's type.toString()
-
Field Details
-
EMPTY_DETAIL_NODE_ARRAY
Empty array ofDetailNode
type. -
index
Node index among parent's children. -
type
Node type. -
text
Node's text content. -
lineNumber
Line number. -
columnNumber
Column number. -
children
Array of child nodes. -
parent
Parent node.
-
-
Constructor Details
-
JavadocNodeImpl
public JavadocNodeImpl()
-
-
Method Details
-
getType
Description copied from interface:DetailNode
Node type.- Specified by:
getType
in interfaceDetailNode
- Returns:
- node type.
- See Also:
-
getText
Description copied from interface:DetailNode
Node text.- Specified by:
getText
in interfaceDetailNode
- Returns:
- node text
-
getLineNumber
Description copied from interface:DetailNode
Node line number.- Specified by:
getLineNumber
in interfaceDetailNode
- Returns:
- node line number
-
getColumnNumber
Description copied from interface:DetailNode
Node column number.- Specified by:
getColumnNumber
in interfaceDetailNode
- Returns:
- node column number.
-
getChildren
Description copied from interface:DetailNode
Array of children.- Specified by:
getChildren
in interfaceDetailNode
- Returns:
- array of children
-
getParent
Description copied from interface:DetailNode
Parent node.- Specified by:
getParent
in interfaceDetailNode
- Returns:
- parent node.
-
getIndex
Description copied from interface:DetailNode
Node index among parent's children.- Specified by:
getIndex
in interfaceDetailNode
- Returns:
- index
-
setType
Sets node's type.- Parameters:
type
- Node's type.
-
setText
Sets node's text content.- Parameters:
text
- Node's text content.
-
setLineNumber
Sets line number.- Parameters:
lineNumber
- Line number.
-
setColumnNumber
Sets column number.- Parameters:
columnNumber
- Column number.
-
setChildren
Sets array of child nodes.- Parameters:
children
- Array of child nodes.
-
setParent
Sets parent node.- Parameters:
parent
- Parent node.
-
setIndex
Sets node's index among parent's children.- Parameters:
index
- Node's index among parent's children.
-
toString
-