Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTCompletionNode

All Known Implementing Classes:
ASTCompletionNode

public interface IASTCompletionNode

This represents the node that would occur at the point of a context completion. This node may contain the prefix text of an identifer up to the point. If there is no prefix, the completion occurred at the point where a new token would have begun. The node points to the parent node where this node, if replaced by a proper node, would reside in the tree.


Method Summary
 int getLength()
          Get the length of the completion point.
 IASTName[] getNames()
          Get 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()
          Get the translation unit for this completion
 

Method Detail

getPrefix

public String getPrefix()
If the point of completion was at the end of a potential identifier, this string contains the text of that identifier.

Returns:
the prefix text up to the point of completion

getLength

public int getLength()
Get the length of the completion point.

Returns:
length of completion token

getNames

public IASTName[] getNames()
Get a list of names that fit in this context.

Returns:
array of IASTName's

getTranslationUnit

public IASTTranslationUnit getTranslationUnit()
Get the translation unit for this completion

Returns:
the translation unit

Eclipse CDT
Pre-release 3.0

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