Klasse JavaModelStatus
java.lang.Object
org.eclipse.core.runtime.Status
org.aspectj.org.eclipse.jdt.internal.core.JavaModelStatus
- Alle implementierten Schnittstellen:
IJavaModelStatus
,IJavaModelStatusConstants
,org.eclipse.core.runtime.IStatus
public class JavaModelStatus
extends org.eclipse.core.runtime.Status
implements IJavaModelStatus, IJavaModelStatusConstants
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected org.eclipse.core.runtime.IStatus[]
protected IJavaElement[]
The elements related to the failure, ornull
if no elements are involved.protected static final org.eclipse.core.runtime.IStatus[]
Empty childrenprotected org.eclipse.core.runtime.IPath
The path related to the failure, ornull
if no path is involved.protected String
TheString
related to the failure, ornull
if noString
is involved.static final IJavaModelStatus
Singleton OK objectVon Klasse geerbte Felder org.eclipse.core.runtime.Status
CANCEL_STATUS, OK_STATUS
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.IJavaModelStatusConstants
BAD_TEXT_EDIT_LOCATION, BUILDER_INITIALIZATION_ERROR, BUILDER_SERIALIZATION_ERROR, CANNOT_RETRIEVE_ATTACHED_JAVADOC, CANNOT_RETRIEVE_ATTACHED_JAVADOC_TIMEOUT, CLASSPATH_CYCLE, COMPILER_FAILURE, CORE_EXCEPTION, CP_CONTAINER_PATH_UNBOUND, CP_INVALID_EXTERNAL_ANNOTATION_PATH, CP_VARIABLE_PATH_UNBOUND, DEPRECATED_VARIABLE, DEVICE_PATH, DISABLED_CP_EXCLUSION_PATTERNS, DISABLED_CP_MULTIPLE_OUTPUT_LOCATIONS, DOM_EXCEPTION, ELEMENT_DOES_NOT_EXIST, ELEMENT_NOT_ON_CLASSPATH, EVALUATION_ERROR, INCOMPATIBLE_JDK_LEVEL, INDEX_OUT_OF_BOUNDS, INVALID_CLASSPATH, INVALID_CLASSPATH_FILE_FORMAT, INVALID_CONTENTS, INVALID_CP_CONTAINER_ENTRY, INVALID_DESTINATION, INVALID_ELEMENT_TYPES, INVALID_NAME, INVALID_PACKAGE, INVALID_PATH, INVALID_PROJECT, INVALID_RESOURCE, INVALID_RESOURCE_TYPE, INVALID_SIBLING, IO_EXCEPTION, MAIN_ONLY_PROJECT_DEPENDS_ON_TEST_ONLY_PROJECT, NAME_COLLISION, NO_ELEMENTS_TO_PROCESS, NO_LOCAL_CONTENTS, NULL_NAME, NULL_PATH, NULL_STRING, OUTPUT_LOCATION_OVERLAPPING_ANOTHER_SOURCE, PATH_OUTSIDE_PROJECT, READ_ONLY, RELATIVE_PATH, TARGET_EXCEPTION, TEST_OUTPUT_FOLDER_MUST_BE_SEPARATE_FROM_MAIN_OUTPUT_FOLDERS, TEST_SOURCE_REQUIRES_SEPARATE_OUTPUT_LOCATION, UNKNOWN_JAVADOC_FORMAT, UPDATE_CONFLICT
Von Schnittstelle geerbte Felder org.eclipse.core.runtime.IStatus
CANCEL, ERROR, INFO, OK, WARNING
-
Konstruktorübersicht
KonstruktorBeschreibungConstructs an Java model status with no corresponding elements.JavaModelStatus
(int code) Constructs an Java model status with no corresponding elements.JavaModelStatus
(int severity, int code, String string) Constructs an Java model status with no corresponding elements.JavaModelStatus
(int severity, int code, IJavaElement element, org.eclipse.core.runtime.IPath path, String msg) Constructs an Java model status with the given corresponding element and pathJavaModelStatus
(int code, String string) Constructs an Java model status with no corresponding elements.JavaModelStatus
(int code, Throwable throwable) Constructs an Java model status with no corresponding elements.JavaModelStatus
(int code, IJavaElement element) Constructs an Java model status with the given corresponding element.JavaModelStatus
(int code, IJavaElement[] elements) Constructs an Java model status with the given corresponding elements.JavaModelStatus
(int code, IJavaElement element, String string) Constructs an Java model status with the given corresponding element and stringJavaModelStatus
(int code, IJavaElement element, org.eclipse.core.runtime.IPath path) Constructs an Java model status with the given corresponding element and pathJavaModelStatus
(int code, IJavaElement element, org.eclipse.core.runtime.IPath path, String string) Constructs an Java model status with the given corresponding element, path and stringJavaModelStatus
(int code, org.eclipse.core.runtime.IPath path) Constructs an Java model status with no corresponding elements.JavaModelStatus
(org.eclipse.core.runtime.CoreException coreException) Constructs an Java model status with no corresponding elements. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected int
getBits()
org.eclipse.core.runtime.IStatus[]
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.Returns the message that is relevant to the code of this status.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
.int
Veraltet.boolean
Returns whether this status indicates that a Java model element does not exist.boolean
boolean
isOK()
boolean
matches
(int mask) protected boolean
matches
(JavaModelStatus status, int mask) Helper for matches(int).static IJavaModelStatus
newMultiStatus
(IJavaModelStatus[] children) Creates and returns a newIJavaModelStatus
that is a a multi-status status.toString()
Returns a printable representation of this exception for debugging purposes.Von Klasse geerbte Methoden org.eclipse.core.runtime.Status
error, error, getCode, getException, getPlugin, info, setCode, setException, setMessage, setPlugin, setSeverity, warning, warning
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IStatus
getCode, getException, getPlugin
-
Felddetails
-
elements
The elements related to the failure, ornull
if no elements are involved. -
path
protected org.eclipse.core.runtime.IPath pathThe path related to the failure, ornull
if no path is involved. -
string
TheString
related to the failure, ornull
if noString
is involved. -
NO_CHILDREN
protected static final org.eclipse.core.runtime.IStatus[] NO_CHILDRENEmpty children -
children
protected org.eclipse.core.runtime.IStatus[] children -
VERIFIED_OK
Singleton OK object
-
-
Konstruktordetails
-
JavaModelStatus
public JavaModelStatus()Constructs an Java model status with no corresponding elements. -
JavaModelStatus
public JavaModelStatus(int code) Constructs an Java model status with no corresponding elements. -
JavaModelStatus
Constructs an Java model status with the given corresponding elements. -
JavaModelStatus
Constructs an Java model status with no corresponding elements. -
JavaModelStatus
Constructs an Java model status with no corresponding elements. -
JavaModelStatus
Constructs an Java model status with no corresponding elements. -
JavaModelStatus
public JavaModelStatus(int code, org.eclipse.core.runtime.IPath path) Constructs an Java model status with no corresponding elements. -
JavaModelStatus
Constructs an Java model status with the given corresponding element. -
JavaModelStatus
Constructs an Java model status with the given corresponding element and string -
JavaModelStatus
Constructs an Java model status with the given corresponding element and path -
JavaModelStatus
public JavaModelStatus(int code, IJavaElement element, org.eclipse.core.runtime.IPath path, String string) Constructs an Java model status with the given corresponding element, path and string -
JavaModelStatus
public JavaModelStatus(int severity, int code, IJavaElement element, org.eclipse.core.runtime.IPath path, String msg) Constructs an Java model status with the given corresponding element and path -
JavaModelStatus
public JavaModelStatus(org.eclipse.core.runtime.CoreException coreException) Constructs an Java model status with no corresponding elements.
-
-
Methodendetails
-
getBits
protected int getBits() -
getChildren
public org.eclipse.core.runtime.IStatus[] getChildren()- Angegeben von:
getChildren
in Schnittstelleorg.eclipse.core.runtime.IStatus
- Setzt außer Kraft:
getChildren
in Klasseorg.eclipse.core.runtime.Status
- Siehe auch:
-
getElements
Beschreibung aus Schnittstelle kopiert:IJavaModelStatus
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.- Angegeben von:
getElements
in SchnittstelleIJavaModelStatus
- Gibt zurück:
- the list of Java element culprits
- Siehe auch:
-
getMessage
Returns the message that is relevant to the code of this status.- Angegeben von:
getMessage
in Schnittstelleorg.eclipse.core.runtime.IStatus
- Setzt außer Kraft:
getMessage
in Klasseorg.eclipse.core.runtime.Status
-
getPath
public org.eclipse.core.runtime.IPath getPath()Beschreibung aus Schnittstelle kopiert:IJavaModelStatus
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
.- Angegeben von:
getPath
in SchnittstelleIJavaModelStatus
- Gibt zurück:
- the path that caused the failure, or
null
if none - Siehe auch:
-
getSeverity
public int getSeverity()- Angegeben von:
getSeverity
in Schnittstelleorg.eclipse.core.runtime.IStatus
- Setzt außer Kraft:
getSeverity
in Klasseorg.eclipse.core.runtime.Status
- Siehe auch:
-
getString
Veraltet.Beschreibung aus Schnittstelle kopiert:IJavaModelStatus
Returns the string associated with the failure (see specification of the status code), ornull
if no string is related to this particular status code.- Angegeben von:
getString
in SchnittstelleIJavaModelStatus
- Gibt zurück:
- the string culprit, or
null
if none - Siehe auch:
-
isDoesNotExist
public boolean isDoesNotExist()Beschreibung aus Schnittstelle kopiert:IJavaModelStatus
Returns whether this status indicates that a Java model element does not exist. This convenience method is equivalent togetCode() == IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST
.- Angegeben von:
isDoesNotExist
in SchnittstelleIJavaModelStatus
- Gibt zurück:
true
if the status code indicates that a Java model element does not exist- Siehe auch:
-
isMultiStatus
public boolean isMultiStatus()- Angegeben von:
isMultiStatus
in Schnittstelleorg.eclipse.core.runtime.IStatus
- Setzt außer Kraft:
isMultiStatus
in Klasseorg.eclipse.core.runtime.Status
- Siehe auch:
-
isOK
public boolean isOK()- Angegeben von:
isOK
in Schnittstelleorg.eclipse.core.runtime.IStatus
- Setzt außer Kraft:
isOK
in Klasseorg.eclipse.core.runtime.Status
- Siehe auch:
-
matches
public boolean matches(int mask) - Angegeben von:
matches
in Schnittstelleorg.eclipse.core.runtime.IStatus
- Setzt außer Kraft:
matches
in Klasseorg.eclipse.core.runtime.Status
- Siehe auch:
-
matches
Helper for matches(int). -
newMultiStatus
Creates and returns a newIJavaModelStatus
that is a a multi-status status.- Siehe auch:
-
toString
Returns a printable representation of this exception for debugging purposes.- Setzt außer Kraft:
toString
in Klasseorg.eclipse.core.runtime.Status
-