|
Eclipse CDT Pre-release 3.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 | |
---|---|
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. |
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. |
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. |
Method Detail |
---|
IASTName findName(int offset, int length)
null
if there is no such node.
IASTName findEnclosingName(int offset, int length)
null
if there is no such node.
IASTName findFirstContainedName(int offset, int length)
null
if there is no such node.
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.
Prefers children over 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.
IASTPreprocessorMacroExpansion findEnclosingMacroExpansion(int offset, int length)
null
.
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |