Package org.aspectj.org.eclipse.jdt.core
Schnittstelle IJavaModelStatus
- Alle Superschnittstellen:
org.eclipse.core.runtime.IStatus
- Alle bekannten Implementierungsklassen:
JavaModelStatus
public interface IJavaModelStatus
extends org.eclipse.core.runtime.IStatus
Represents the outcome of an Java model operation. Status objects are
used inside
JavaModelException
objects to indicate what went
wrong.
Java model status object are distinguished by their plug-in id:
getPlugin
returns "org.aspectj.org.eclipse.jdt.core"
.
getCode
returns one of the status codes declared in
IJavaModelStatusConstants
.
A Java model status may also carry additional information (that is, in
addition to the information defined in IStatus
):
- elements - optional handles to Java elements associated with the failure
- string - optional string associated with the failure
- Siehe auch:
-
IStatus
IJavaModelStatusConstants
-
Feldübersicht
Von Schnittstelle geerbte Felder org.eclipse.core.runtime.IStatus
CANCEL, ERROR, INFO, OK, WARNING
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns any Java elements associated with the failure (see specification of the status code), or an empty array if no elements are related to this particular status code.org.eclipse.core.runtime.IPath
getPath()
Returns the path associated with the failure (see specification of the status code), ornull
if the failure is not one ofDEVICE_PATH
,INVALID_PATH
,PATH_OUTSIDE_PROJECT
, orRELATIVE_PATH
.Veraltet.boolean
Returns whether this status indicates that a Java model element does not exist.Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IStatus
getChildren, getCode, getException, getMessage, getPlugin, getSeverity, isMultiStatus, isOK, matches
-
Methodendetails
-
getElements
IJavaElement[] getElements()Returns any Java elements associated with the failure (see specification of the status code), or an empty array if no elements are related to this particular status code.- Gibt zurück:
- the list of Java element culprits
- Siehe auch:
-
getPath
org.eclipse.core.runtime.IPath getPath()Returns the path associated with the failure (see specification of the status code), ornull
if the failure is not one ofDEVICE_PATH
,INVALID_PATH
,PATH_OUTSIDE_PROJECT
, orRELATIVE_PATH
.- Gibt zurück:
- the path that caused the failure, or
null
if none - Siehe auch:
-
getString
String getString()Veraltet.UseIStatus.getMessage()
insteadReturns the string associated with the failure (see specification of the status code), ornull
if no string is related to this particular status code.- Gibt zurück:
- the string culprit, or
null
if none - Siehe auch:
-
isDoesNotExist
boolean isDoesNotExist()Returns whether this status indicates that a Java model element does not exist. This convenience method is equivalent togetCode() == IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST
.- Gibt zurück:
true
if the status code indicates that a Java model element does not exist- Siehe auch:
-
IStatus.getMessage()
instead