Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui.text.java
Interface IInvocationContext


public interface IInvocationContext

Context information for quick fix and quick assist processors.

Note: this interface is not intended to be implemented.

Since:
3.0
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.

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

getCompilationUnit


ICompilationUnit getCompilationUnit()
Returns:
Returns the current compilation unit.

getSelectionOffset

int getSelectionOffset()
Returns:
Returns the offset of the current selection

getSelectionLength

int getSelectionLength()
Returns:
Returns the length of the current selection

getASTRoot


CompilationUnit getASTRoot()
Returns an AST of the compilation unit, possibly only a partial AST focused on the selection offset (see 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()).

Returns:
Returns the root of the AST corresponding to the current compilation unit.

getCoveringNode


ASTNode getCoveringNode()
Convenience method to evaluate the AST node covering the current selection.

Returns:
Returns the node that covers the location of the problem

getCoveredNode


ASTNode getCoveredNode()
Convenience method to evaluate the AST node that is covered by the current selection.

Returns:
Returns the node that is covered by the location of the problem

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire