Eclipse CDT
7.0

org.eclipse.cdt.core.dom.ast
Class ASTCompletionNode

java.lang.Object
  extended by org.eclipse.cdt.core.dom.ast.ASTCompletionNode
All Implemented Interfaces:
IASTCompletionNode

public class ASTCompletionNode
extends java.lang.Object
implements IASTCompletionNode


Constructor Summary
ASTCompletionNode(org.eclipse.cdt.core.parser.IToken completionToken, IASTTranslationUnit translationUnit)
           
 
Method Summary
 void addName(IASTName name)
           
 int getLength()
          Get the length of the completion point.
 IASTName[] getNames()
          Get 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()
          Get the translation unit for this completion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTCompletionNode

public ASTCompletionNode(org.eclipse.cdt.core.parser.IToken completionToken,
                         IASTTranslationUnit translationUnit)
Method Detail

addName

public void addName(IASTName name)

getPrefix

public java.lang.String 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 interface IASTCompletionNode
Returns:
the prefix text up to the point of completion

getLength

public int getLength()
Description copied from interface: IASTCompletionNode
Get the length of the completion point.

Specified by:
getLength in interface IASTCompletionNode
Returns:
length of completion token

getNames

public IASTName[] getNames()
Description copied from interface: IASTCompletionNode
Get a list of names that fit in this context.

Specified by:
getNames in interface IASTCompletionNode
Returns:
array of IASTName's

getTranslationUnit

public IASTTranslationUnit getTranslationUnit()
Description copied from interface: IASTCompletionNode
Get the translation unit for this completion

Specified by:
getTranslationUnit in interface IASTCompletionNode
Returns:
the translation unit

Eclipse CDT
7.0

Copyright (c) IBM Corp. and others 2004, 2012. All Rights Reserved.