public class ASTCompletionNode extends java.lang.Object implements IASTCompletionNode
Constructor and Description |
---|
ASTCompletionNode(org.eclipse.cdt.core.parser.IToken completionToken,
IASTTranslationUnit translationUnit) |
Modifier and Type | Method and Description |
---|---|
void |
addName(IASTName name) |
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 IASTName[] getNames()
IASTCompletionNode
getNames
in interface IASTCompletionNode
public IASTTranslationUnit getTranslationUnit()
IASTCompletionNode
getTranslationUnit
in interface IASTCompletionNode
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.