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
ConstructorsConstructorDescriptionASTCompletionNode(IToken completionToken, IASTTranslationUnit translationUnit) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontainsName(IASTName name) Returns true if this completion node contains aIASTCompletionNode.CompletionNameEntrywith the given name.Returns a list of names that fir in this context, along with their parents.intReturns 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:IASTCompletionNodeIf the point of completion was at the end of a potential identifier, this string contains the text of that identifier.- Specified by:
getPrefixin interfaceIASTCompletionNode- Returns:
- the prefix text up to the point of completion
-
getLength
public int getLength()Description copied from interface:IASTCompletionNodeReturns the length of the completion point.- Specified by:
getLengthin interfaceIASTCompletionNode
-
containsName
Description copied from interface:IASTCompletionNodeReturns true if this completion node contains aIASTCompletionNode.CompletionNameEntrywith the given name.- Specified by:
containsNamein interfaceIASTCompletionNode
-
getNames
Description copied from interface:IASTCompletionNodeReturns 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:
getNamesin interfaceIASTCompletionNode
-
getEntries
Description copied from interface:IASTCompletionNodeReturns a list of names that fir in this context, along with their parents. SeeIASTCompletionNode.CompletionNameEntryfor more details.- Specified by:
getEntriesin interfaceIASTCompletionNode
-
getTranslationUnit
Description copied from interface:IASTCompletionNodeReturns the translation unit for this completion.- Specified by:
getTranslationUnitin interfaceIASTCompletionNode
-