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 IProblemLocation


public interface IProblemLocation

Problem 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
  ASTNode getCoveredNode ( CompilationUnit astRoot)
          Convenience method to evaluate the AST node covered by this problem.
  ASTNode getCoveringNode ( CompilationUnit astRoot)
          Convenience method to evaluate the AST node covering this problem.
 int getLength ()
          Returns the length of the problem.
  String getMarkerType ()
          Returns the marker type of this problem.
 int getOffset ()
          Returns the start offset of the problem.
  String[] getProblemArguments ()
          Returns the original arguments recorded into the problem.
 int getProblemId ()
          Returns the id of problem.
 boolean isError ()
          Returns if the problem has error severity.
 

Method Detail

getOffset

int getOffset()
Returns the start offset of the problem.

Returns:
the start offset of the problem

getLength

int getLength()
Returns the length of the problem.

Returns:
the length of the problem

getMarkerType


String getMarkerType()
Returns the marker type of this problem.

Returns:
The marker type of the problem.
Since:
3.2

getProblemId

int getProblemId()
Returns the id of problem. Note that problem ids are defined per problem marker type. See IProblem for id definitions for problems of type org.eclipse.jdt.core.problem and org.eclipse.jdt.core.task.

Returns:
The id of the problem.

getProblemArguments


String[] getProblemArguments()
Returns the original arguments recorded into the problem.

Returns:
String[] Returns the problem arguments.

isError

boolean isError()
Returns if the problem has error severity.

Returns:
true if the problem has error severity

getCoveringNode


ASTNode getCoveringNode(
CompilationUnit astRoot)
Convenience method to evaluate the AST node covering this problem.

Parameters:
astRoot - The root node of the current AST
Returns:
Returns the node that covers the location of the problem

getCoveredNode


ASTNode getCoveredNode(
CompilationUnit astRoot)
Convenience method to evaluate the AST node covered by this problem.

Parameters:
astRoot - The root node of the current AST
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