Iterable<? extends Node>
children()
Returns an iterable enumerating the children of this node.
List<? extends Node>
findChildNodesWithXPath(String xpathString)
Deprecated.
This is very inefficient and should not be used in new code.
<T> List<T>
findChildrenOfType(Class<T> childType)
Traverses the children to find all the instances of type childType or one of its subclasses.
<T> List<T>
findDescendantsOfType(Class<T> targetType)
Traverses down the tree to find all the descendant instances of type descendantType without crossing find boundaries.
<T> List<T>
findDescendantsOfType(Class<T> targetType, boolean crossFindBoundaries)
Traverses down the tree to find all the descendant instances of type descendantType.
<T> void
findDescendantsOfType(Class<T> targetType, List<T> results, boolean crossFindBoundaries)
Document
getAsDocument()
Get a DOM Document which contains Elements and Attributes representative of this Node and it's children.
int
getBeginColumn()
int
getBeginLine()
Node
getChild(int index)
Returns the child of this node at the given index.
DataFlowNode
getDataFlowNode()
Deprecated.
This is Java-specific and will be removed from this interface
int
getEndColumn()
int
getEndLine()
<T> T
getFirstChildOfType(Class<T> childType)
Traverses the children to find the first instance of type childType.
<T> T
getFirstDescendantOfType(Class<T> descendantType)
Traverses down the tree to find the first descendant instance of type descendantType without crossing find boundaries.
<T> T
getFirstParentOfAnyType(Class<? extends T>... parentTypes)
Gets the first parent that's an instance of any of the given types.
<T> T
getFirstParentOfType(Class<T> parentType)
Traverses up the tree to find the first parent instance of type parentType or one of its subclasses.
String
getImage()
Returns a string token, usually filled-in by the parser, which describes some textual characteristic of this node.
int
getIndexInParent()
Returns the index of this node in its parent's children.
Node
getNthParent(int n)
Returns the n-th parent or null if there are less than n
ancestors.
int
getNumChildren()
Returns the number of children of this node.
Node
getParent()
Returns the parent of this node, or null if this is the
rootof the tree.
<T> List<T>
getParentsOfType(Class<T> parentType)
Traverses up the tree to find all of the parent instances of type parentType or one of its subclasses.
Object
getUserData()
Get the user data associated with this node.
Iterator<Attribute>
getXPathAttributesIterator()
Returns an iterator enumerating all the attributes that are available from XPath for this node.
String
getXPathNodeName()
Gets the name of the node that is used to match it with XPath queries.
boolean
hasDescendantMatchingXPath(String xpathString)
Deprecated.
This is very inefficient and should not be used in new code.
<T> boolean
hasDescendantOfType(Class<T> type)
Finds if this node contains a descendant of the given type without crossing find boundaries.
boolean
hasImageEqualTo(String image)
Returns true if this node's image is equal to the given string.
boolean
isFindBoundary()
Returns true if this node is considered a boundary by traversal methods.
void
jjtAddChild(Node child, int index)
Deprecated.
This is JJTree-specific and will be removed from this interface
void
jjtClose()
Deprecated.
This is JJTree-specific and will be removed from this interface
Node
jjtGetChild(int index)
int
jjtGetChildIndex()
int
jjtGetId()
Deprecated.
This is JJTree-specific and will be removed from this interface.
int
jjtGetNumChildren()
Node
jjtGetParent()
void
jjtOpen()
Deprecated.
This is JJTree-specific and will be removed from this interface
void
jjtSetChildIndex(int index)
Deprecated.
This is JJTree-specific and will be removed from this interface
void
jjtSetParent(Node parent)
Deprecated.
This is JJTree-specific and will be removed from this interface
void
remove()
Deprecated.
This is internal API and will be removed from this interface with 7.0.0
void
removeChildAtIndex(int childIndex)
Deprecated.
This is internal API and will be removed from this interface with 7.0.0
void
setDataFlowNode(DataFlowNode dataFlowNode)
Deprecated.
This is Java-specific and will be removed from this interface
void
setImage(String image)
Deprecated.
This is internal API, the image should never be set by developers.
void
setUserData(Object userData)
Set the user data associated with this node.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4