Package org.eclipse.cdt.core.dom.ast
Class ASTCompletionNode
java.lang.Object
org.eclipse.cdt.core.dom.ast.ASTCompletionNode
- All Implemented Interfaces:
IASTCompletionNode
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTCompletionNode
IASTCompletionNode.CompletionNameEntry
-
Constructor Summary
ConstructorDescriptionASTCompletionNode
(IToken completionToken, IASTTranslationUnit translationUnit) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
containsName
(IASTName name) Returns true if this completion node contains aIASTCompletionNode.CompletionNameEntry
with the given name.Returns a list of names that fir in this context, along with their parents.int
Returns the length of the completion point.IASTName[]
getNames()
Returns a list of names that fit in this context.If the point of completion was at the end of a potential identifier, this string contains the text of that identifier.Returns the translation unit for this completion.
-
Constructor Details
-
ASTCompletionNode
-
-
Method Details
-
addName
-
getPrefix
Description copied from interface:IASTCompletionNode
If the point of completion was at the end of a potential identifier, this string contains the text of that identifier.- Specified by:
getPrefix
in interfaceIASTCompletionNode
- Returns:
- the prefix text up to the point of completion
-
getLength
public int getLength()Description copied from interface:IASTCompletionNode
Returns the length of the completion point.- Specified by:
getLength
in interfaceIASTCompletionNode
-
containsName
Description copied from interface:IASTCompletionNode
Returns true if this completion node contains aIASTCompletionNode.CompletionNameEntry
with the given name.- Specified by:
containsName
in interfaceIASTCompletionNode
-
getNames
Description copied from interface:IASTCompletionNode
Returns a list of names that fit in this context. If doing computations based on the name's parent, prefer calling getEntries() instead and obtaining the parent from there.- Specified by:
getNames
in interfaceIASTCompletionNode
-
getEntries
Description copied from interface:IASTCompletionNode
Returns a list of names that fir in this context, along with their parents. SeeIASTCompletionNode.CompletionNameEntry
for more details.- Specified by:
getEntries
in interfaceIASTCompletionNode
-
getTranslationUnit
Description copied from interface:IASTCompletionNode
Returns the translation unit for this completion.- Specified by:
getTranslationUnit
in interfaceIASTCompletionNode
-