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 identifier 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.
    Restriction:
    This interface is not intended to be implemented by clients.
    Restriction:
    This interface is not intended to be extended by clients.
    • Method Detail

      • getPrefix

        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

        int getLength()
        Returns the length of the completion point.
      • getNames

        IASTName[] getNames()
        Returns a list of names that fit in this context. If doing computations based on the name's parent, prefer calling getEntries() instead and obtaining the parent from there.
      • getTranslationUnit

        IASTTranslationUnit getTranslationUnit()
        Returns the translation unit for this completion.