Interface IASTNodeSelector
IASTTranslationUnit.getNodeSelector(String)
.- Since:
- 5.0
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionfindEnclosingImplicitName
(int offset, int length) Returns the first implicit name enclosing the given range.findEnclosingMacroExpansion
(int offset, int length) Returns a macro expansion enclosing the given range, ornull
.findEnclosingName
(int offset, int length) Returns the smallest name enclosing the given range, ornull
if there is no such node.findEnclosingNode
(int offset, int length) Returns the smallest node enclosing the given range, ornull
if there is no such node.findEnclosingNodeInExpansion
(int offset, int length) Returns the smallest node enclosing the range, ornull
if there is no such node.findFirstContainedName
(int offset, int length) Returns the first name contained in the given range, ornull
if there is no such node.findFirstContainedNode
(int offset, int length) Returns the first node contained in the given range, ornull
if there is no such node.findFirstContainedNodeInExpansion
(int offset, int length) Returns the first node contained in the given expansion, ornull
if there is no such node.findImplicitName
(int offset, int length) Returns the implicit name for the exact given range, ornull
if there is no such node.findName
(int offset, int length) Returns the name for the exact given range, ornull
if there is no such node.findNode
(int offset, int length) Returns the node for the exact given range, ornull
if there is no such node.findNodeInExpansion
(int offset, int length) Returns the node for the exact given range, ornull
if there is no such node.findStrictlyEnclosingNode
(int offset, int length) Returns the smallest node strictly enclosing the given range, ornull
if there is no such node.
-
Method Details
-
findName
Returns the name for the exact given range, ornull
if there is no such node. Will not return an implicit name. -
findEnclosingName
Returns the smallest name enclosing the given range, ornull
if there is no such node. Will not return an implicit name. -
findFirstContainedName
Returns the first name contained in the given range, ornull
if there is no such node. Will not return an implicit name. -
findImplicitName
Returns the implicit name for the exact given range, ornull
if there is no such node. Note that there can be more than one implicit name in the same location. The implicit name's parent can be used to get all the names at the location.- Since:
- 5.1
-
findEnclosingImplicitName
Returns the first implicit name enclosing the given range. Note that there can be more than one implicit name in the same location. The implicit name's parent can be used to get all the names at the location.- Since:
- 5.1
-
findNode
Returns the node for the exact given range, ornull
if there is no such node.For nodes with the same location, macro-expansions (
IASTPreprocessorMacroExpansion
) are preferred over c/c++-nodes and children are preferred over their parents. -
findEnclosingNode
Returns the smallest node enclosing the given range, ornull
if there is no such node.For nodes with the same location, macro-expansions (
IASTPreprocessorMacroExpansion
) are preferred over c/c++-nodes nodes and children are preferred over their parents. -
findStrictlyEnclosingNode
Returns the smallest node strictly enclosing the given range, ornull
if there is no such node.For nodes with the same location, macro-expansions (
IASTPreprocessorMacroExpansion
) are preferred over c/c++-nodes nodes and children are preferred over their parents.- Since:
- 5.3
-
findFirstContainedNode
Returns the first node contained in the given range, ornull
if there is no such node.For nodes with the same location, macro-expansions (
IASTPreprocessorMacroExpansion
) are preferred over c/c++-nodes nodes and children are preferred over their parents. -
findNodeInExpansion
Returns the node for the exact given range, ornull
if there is no such node.The method never returns a macro expansion (
IASTPreprocessorMacroExpansion
) or the name for an expansion. Rather than that the expansion itself is searched for a matching node.- Since:
- 5.1
-
findEnclosingNodeInExpansion
Returns the smallest node enclosing the range, ornull
if there is no such node.The method never returns a macro expansion (
IASTPreprocessorMacroExpansion
) or the name for an expansion. Rather than that the expansion itself is searched for a matching node.- Since:
- 5.1
-
findFirstContainedNodeInExpansion
Returns the first node contained in the given expansion, ornull
if there is no such node.The method never returns a macro expansion (
IASTPreprocessorMacroExpansion
) or the name for an expansion. Rather than that the expansion itself is searched for a matching node.- Since:
- 5.1
-
findEnclosingMacroExpansion
Returns a macro expansion enclosing the given range, ornull
.
-