public class ASTCompletionNode extends Object implements IASTCompletionNode
IASTCompletionNode.CompletionNameEntry| Constructor and Description |
|---|
ASTCompletionNode(IToken completionToken,
IASTTranslationUnit translationUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addName(IASTName name) |
boolean |
containsName(IASTName name)
Returns true if this completion node contains a
IASTCompletionNode.CompletionNameEntry
with the given name. |
IASTCompletionNode.CompletionNameEntry[] |
getEntries()
Returns a list of names that fir in this context, along with their parents.
|
int |
getLength()
Returns the length of the completion point.
|
IASTName[] |
getNames()
Returns a list of names that fit in this context.
|
String |
getPrefix()
If the point of completion was at the end of a potential identifier, this
string contains the text of that identifier.
|
IASTTranslationUnit |
getTranslationUnit()
Returns the translation unit for this completion.
|
public ASTCompletionNode(IToken completionToken, IASTTranslationUnit translationUnit)
public void addName(IASTName name)
public String getPrefix()
IASTCompletionNodegetPrefix in interface IASTCompletionNodepublic int getLength()
IASTCompletionNodegetLength in interface IASTCompletionNodepublic boolean containsName(IASTName name)
IASTCompletionNodeIASTCompletionNode.CompletionNameEntry
with the given name.containsName in interface IASTCompletionNodepublic IASTName[] getNames()
IASTCompletionNodegetNames in interface IASTCompletionNodepublic IASTCompletionNode.CompletionNameEntry[] getEntries()
IASTCompletionNodeIASTCompletionNode.CompletionNameEntry for more details.getEntries in interface IASTCompletionNodepublic IASTTranslationUnit getTranslationUnit()
IASTCompletionNodegetTranslationUnit in interface IASTCompletionNodeCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.