A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.10.0/net/sourceforge/pmd/lang/ast/Node.html below:

Node (PMD Core 6.10.0 API)

Modifier and Type Method Description java.util.List<? extends Node> findChildNodesWithXPath​(java.lang.String xpathString)

Returns all the nodes matching the xpath expression.

<T> java.util.List<T> findChildrenOfType​(java.lang.Class<T> childType)

Traverses the children to find all the instances of type childType or one of its subclasses.

<T> java.util.List<T> findDescendantsOfType​(java.lang.Class<T> targetType)

Traverses down the tree to find all the descendant instances of type descendantType without crossing find boundaries.

<T> void findDescendantsOfType​(java.lang.Class<T> targetType, java.util.List<T> results, boolean crossFindBoundaries)

Traverses down the tree to find all the descendant instances of type descendantType.

org.w3c.dom.Document getAsDocument()

Get a DOM Document which contains Elements and Attributes representative of this Node and it's children.

int getBeginColumn()   int getBeginLine()   DataFlowNode getDataFlowNode()   int getEndColumn()   int getEndLine()   <T> T getFirstChildOfType​(java.lang.Class<T> childType)

Traverses the children to find the first instance of type childType.

<T> T getFirstDescendantOfType​(java.lang.Class<T> descendantType)

Traverses down the tree to find the first descendant instance of type descendantType without crossing find boundaries.

<T> T getFirstParentOfAnyType​(java.lang.Class<? extends T>... parentTypes)

Gets the first parent that's an instance of any of the given types.

<T> T getFirstParentOfType​(java.lang.Class<T> parentType)

Traverses up the tree to find the first parent instance of type parentType or one of its subclasses.

java.lang.String getImage()

Returns a string token, usually filled-in by the parser, which describes some textual characteristic of this node.

Node getNthParent​(int n)

Returns the n-th parent or null if there are less than n ancestors.

<T> java.util.List<T> getParentsOfType​(java.lang.Class<T> parentType)

Traverses up the tree to find all of the parent instances of type parentType or one of its subclasses.

java.lang.Object getUserData()

Get the user data associated with this node.

java.util.Iterator<Attribute> getXPathAttributesIterator()

Returns an iterator enumerating all the attributes that are available from XPath for this node.

java.lang.String getXPathNodeName()

Gets the name of the node that is used to match it with XPath queries.

boolean hasDescendantMatchingXPath​(java.lang.String xpathString)

Checks whether at least one descendant matches the xpath expression.

<T> boolean hasDescendantOfType​(java.lang.Class<T> type)

Finds if this node contains a descendant of the given type without crossing find boundaries.

boolean hasImageEqualTo​(java.lang.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)

This method tells the node to add its argument to the node's list of children.

void jjtClose()

This method is called after all the child nodes have been added.

Node jjtGetChild​(int index)

This method returns a child node.

int jjtGetChildIndex()

Gets the index of this node in the children of its parent.

int jjtGetId()   int jjtGetNumChildren()

Returns the number of children the node has.

Node jjtGetParent()

Returns the parent of this node.

void jjtOpen()

This method is called after the node has been made the current node.

void jjtSetChildIndex​(int index)

Sets the index of this node from the perspective of its parent.

void jjtSetParent​(Node parent)

Sets the parent of this node.

void remove()

Remove the current node from its parent.

void removeChildAtIndex​(int childIndex)

This method tells the node to remove the child node at the given index from the node's list of children, if any; if not, no changes are done.

void setDataFlowNode​(DataFlowNode dataFlowNode)   void setImage​(java.lang.String image)   void setUserData​(java.lang.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