Package org.attoparser.dom
Class AbstractNestableNode
java.lang.Object
org.attoparser.dom.AbstractNode
org.attoparser.dom.AbstractNestableNode
- All Implemented Interfaces:
INestableNode
,INode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
final void
getChildrenOfType
(Class<T> type) <T extends INode>
TgetFirstChildOfType
(Class<T> type) boolean
final void
insertChild
(int index, INode newChild) final void
insertChildAfter
(INode after, INode newChild) final void
insertChildBefore
(INode before, INode newChild) int
final void
removeChild
(INode child) Methods inherited from class org.attoparser.dom.AbstractNode
getCol, getLine, getParent, hasCol, hasLine, hasParent, setCol, setLine, setParent
-
Field Details
-
children
-
childrenLen
private int childrenLen
-
-
Constructor Details
-
AbstractNestableNode
protected AbstractNestableNode()
-
-
Method Details
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildren
in interfaceINestableNode
-
numChildren
public int numChildren()- Specified by:
numChildren
in interfaceINestableNode
-
getChildren
- Specified by:
getChildren
in interfaceINestableNode
-
getChildrenOfType
- Specified by:
getChildrenOfType
in interfaceINestableNode
-
getFirstChild
- Specified by:
getFirstChild
in interfaceINestableNode
-
getFirstChildOfType
- Specified by:
getFirstChildOfType
in interfaceINestableNode
-
addChild
- Specified by:
addChild
in interfaceINestableNode
-
insertChild
- Specified by:
insertChild
in interfaceINestableNode
-
insertChildBefore
- Specified by:
insertChildBefore
in interfaceINestableNode
-
insertChildAfter
- Specified by:
insertChildAfter
in interfaceINestableNode
-
removeChild
- Specified by:
removeChild
in interfaceINestableNode
-
clearChildren
public final void clearChildren()- Specified by:
clearChildren
in interfaceINestableNode
-