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
FieldsModifier and TypeFieldDescriptionprivate DetailNode[]Array of child nodes.private intColumn number.static final JavadocNodeImpl[]Empty array ofDetailNodetype.private intNode index among parent's children.private intLine number.private DetailNodeParent node.private StringNode's text content.private intNode type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArray of children.intNode column number.intgetIndex()Node index among parent's children.intNode line number.Parent node.getText()Node text.intgetType()Node type.voidsetChildren(DetailNode... children) Sets array of child nodes.voidsetColumnNumber(int columnNumber) Sets column number.voidsetIndex(int index) Sets node's index among parent's children.voidsetLineNumber(int lineNumber) Sets line number.voidsetParent(DetailNode parent) Sets parent node.voidSets node's text content.voidsetType(int type) Sets node's type.toString()
-
Field Details
-
EMPTY_DETAIL_NODE_ARRAY
Empty array ofDetailNodetype. -
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:DetailNodeNode type.- Specified by:
getTypein interfaceDetailNode- Returns:
- node type.
- See Also:
-
getText
Description copied from interface:DetailNodeNode text.- Specified by:
getTextin interfaceDetailNode- Returns:
- node text
-
getLineNumber
Description copied from interface:DetailNodeNode line number.- Specified by:
getLineNumberin interfaceDetailNode- Returns:
- node line number
-
getColumnNumber
Description copied from interface:DetailNodeNode column number.- Specified by:
getColumnNumberin interfaceDetailNode- Returns:
- node column number.
-
getChildren
Description copied from interface:DetailNodeArray of children.- Specified by:
getChildrenin interfaceDetailNode- Returns:
- array of children
-
getParent
Description copied from interface:DetailNodeParent node.- Specified by:
getParentin interfaceDetailNode- Returns:
- parent node.
-
getIndex
Description copied from interface:DetailNodeNode index among parent's children.- Specified by:
getIndexin 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
-