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 TypeMethodDescriptionvoidfinal voidgetChildrenOfType(Class<T> type) <T extends INode>
TgetFirstChildOfType(Class<T> type) booleanfinal voidinsertChild(int index, INode newChild) final voidinsertChildAfter(INode after, INode newChild) final voidinsertChildBefore(INode before, INode newChild) intfinal voidremoveChild(INode child) Methods inherited from class 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:
hasChildrenin interfaceINestableNode
-
numChildren
public int numChildren()- Specified by:
numChildrenin interfaceINestableNode
-
getChildren
- Specified by:
getChildrenin interfaceINestableNode
-
getChildrenOfType
- Specified by:
getChildrenOfTypein interfaceINestableNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceINestableNode
-
getFirstChildOfType
- Specified by:
getFirstChildOfTypein interfaceINestableNode
-
addChild
- Specified by:
addChildin interfaceINestableNode
-
insertChild
- Specified by:
insertChildin interfaceINestableNode
-
insertChildBefore
- Specified by:
insertChildBeforein interfaceINestableNode
-
insertChildAfter
- Specified by:
insertChildAfterin interfaceINestableNode
-
removeChild
- Specified by:
removeChildin interfaceINestableNode
-
clearChildren
public final void clearChildren()- Specified by:
clearChildrenin interfaceINestableNode
-