public class ASTCompletionNode extends java.lang.Object implements IASTCompletionNode
IASTCompletionNode.CompletionNameEntry
Constructor and Description |
---|
ASTCompletionNode(org.eclipse.cdt.core.parser.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.
|
java.lang.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(org.eclipse.cdt.core.parser.IToken completionToken, IASTTranslationUnit translationUnit)
public void addName(IASTName name)
public java.lang.String getPrefix()
IASTCompletionNode
getPrefix
in interface IASTCompletionNode
public int getLength()
IASTCompletionNode
getLength
in interface IASTCompletionNode
public boolean containsName(IASTName name)
IASTCompletionNode
IASTCompletionNode.CompletionNameEntry
with the given name.containsName
in interface IASTCompletionNode
public IASTName[] getNames()
IASTCompletionNode
getNames
in interface IASTCompletionNode
public IASTCompletionNode.CompletionNameEntry[] getEntries()
IASTCompletionNode
IASTCompletionNode.CompletionNameEntry
for more details.getEntries
in interface IASTCompletionNode
public IASTTranslationUnit getTranslationUnit()
IASTCompletionNode
getTranslationUnit
in interface IASTCompletionNode
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.