|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IInvocationContext
Context information for quick fix and quick assist processors.
Note: this interface is not intended to be implemented.
Method Summary | |
---|---|
CompilationUnit |
getASTRoot()
Returns an AST of the compilation unit, possibly only a partial AST focused on the selection offset (see ASTParser.setFocalPosition(int) ). |
ICompilationUnit |
getCompilationUnit()
|
ASTNode |
getCoveredNode()
Convenience method to evaluate the AST node that is covered by the current selection. |
ASTNode |
getCoveringNode()
Convenience method to evaluate the AST node covering the current selection. |
int |
getSelectionLength()
|
int |
getSelectionOffset()
|
Method Detail |
---|
ICompilationUnit getCompilationUnit()
int getSelectionOffset()
int getSelectionLength()
CompilationUnit getASTRoot()
ASTParser.setFocalPosition(int)
).
The returned AST is shared and therefore protected and cannot be modified.
The client must check the AST API level and do nothing if they are given an AST
they can't handle. (see AST.apiLevel()
).
ASTNode getCoveringNode()
ASTNode getCoveredNode()
|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.