|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IASTNodeSelector
Interface for searching nodes in a translation unit. An instance of this interface, responsible
for one file contained in a translation-unit, can be obtained using
IASTTranslationUnit.getNodeSelector(String)
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
.
|
Eclipse CDT 7.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |