public interface IASTNodeSelector
IASTTranslationUnit.getNodeSelector(String)
.Modifier and Type | Method and Description |
---|---|
IASTImplicitName |
findEnclosingImplicitName(int offset,
int length)
Returns the first implicit name enclosing the given range.
|
IASTPreprocessorMacroExpansion |
findEnclosingMacroExpansion(int offset,
int length)
Returns a macro expansion enclosing the given range, or
null . |
IASTName |
findEnclosingName(int offset,
int length)
Returns the smallest name enclosing the given range, or
null if there is
no such node. |
IASTNode |
findEnclosingNode(int offset,
int length)
Returns the smallest node enclosing the given range, or
null if there is
no such node. |
IASTNode |
findEnclosingNodeInExpansion(int offset,
int length)
Returns the smallest node enclosing the range, or
null if there is no such node. |
IASTName |
findFirstContainedName(int offset,
int length)
Returns the first name contained in the given range, or
null if there is
no such node. |
IASTNode |
findFirstContainedNode(int offset,
int length)
Returns the first node contained in the given range, or
null if there is
no such node. |
IASTNode |
findFirstContainedNodeInExpansion(int offset,
int length)
Returns the first node contained in the given expansion, or
null if there is
no such node. |
IASTImplicitName |
findImplicitName(int offset,
int length)
Returns the implicit name for the exact given range, or
null if there is
no such node. |
IASTName |
findName(int offset,
int length)
Returns the name for the exact given range, or
null if there is no such node. |
IASTNode |
findNode(int offset,
int length)
Returns the node for the exact given range, or
null if there is no such node. |
IASTNode |
findNodeInExpansion(int offset,
int length)
Returns the node for the exact given range, or
null if there is no such node. |
IASTNode |
findStrictlyEnclosingNode(int offset,
int length)
Returns the smallest node strictly enclosing the given range, or
null if there
is no such node. |
IASTName findName(int offset, int length)
null
if there is no such node.
Will not return an implicit name.IASTName findEnclosingName(int offset, int length)
null
if there is
no such node. Will not return an implicit name.IASTName findFirstContainedName(int offset, int length)
null
if there is
no such node. Will not return an implicit name.IASTImplicitName findImplicitName(int offset, int length)
null
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.IASTImplicitName findEnclosingImplicitName(int offset, int length)
IASTNode findNode(int offset, int length)
null
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.
IASTNode findEnclosingNode(int offset, int length)
null
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.
IASTNode findStrictlyEnclosingNode(int offset, int length)
null
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.
IASTNode findFirstContainedNode(int offset, int length)
null
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.
IASTNode findNodeInExpansion(int offset, int length)
null
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.
IASTNode findEnclosingNodeInExpansion(int offset, int length)
null
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.
IASTNode findFirstContainedNodeInExpansion(int offset, int length)
null
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.
IASTPreprocessorMacroExpansion findEnclosingMacroExpansion(int offset, int length)
null
.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.