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:
  • Felddetails

    • elements

      protected IJavaElement[] elements
      The elements related to the failure, or null if no elements are involved.
    • path

      protected org.eclipse.core.runtime.IPath path
      The path related to the failure, or null if no path is involved.
    • string

      protected String string
      The String related to the failure, or null if no String is involved.
    • NO_CHILDREN

      protected static final org.eclipse.core.runtime.IStatus[] NO_CHILDREN
      Empty children
    • children

      protected org.eclipse.core.runtime.IStatus[] children
    • VERIFIED_OK

      public static final IJavaModelStatus 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

      public JavaModelStatus(int code, IJavaElement[] elements)
      Constructs an Java model status with the given corresponding elements.
    • JavaModelStatus

      public JavaModelStatus(int code, String string)
      Constructs an Java model status with no corresponding elements.
    • JavaModelStatus

      public JavaModelStatus(int severity, int code, String string)
      Constructs an Java model status with no corresponding elements.
    • JavaModelStatus

      public JavaModelStatus(int code, Throwable throwable)
      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

      public JavaModelStatus(int code, IJavaElement element)
      Constructs an Java model status with the given corresponding element.
    • JavaModelStatus

      public JavaModelStatus(int code, IJavaElement element, String string)
      Constructs an Java model status with the given corresponding element and string
    • JavaModelStatus

      public JavaModelStatus(int code, IJavaElement element, org.eclipse.core.runtime.IPath path)
      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 Schnittstelle org.eclipse.core.runtime.IStatus
      Setzt außer Kraft:
      getChildren in Klasse org.eclipse.core.runtime.Status
      Siehe auch:
      • IStatus
    • getElements

      public IJavaElement[] 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 Schnittstelle IJavaModelStatus
      Gibt zurück:
      the list of Java element culprits
      Siehe auch:
    • getMessage

      public String getMessage()
      Returns the message that is relevant to the code of this status.
      Angegeben von:
      getMessage in Schnittstelle org.eclipse.core.runtime.IStatus
      Setzt außer Kraft:
      getMessage in Klasse org.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), or null if the failure is not one of DEVICE_PATH, INVALID_PATH, PATH_OUTSIDE_PROJECT, or RELATIVE_PATH.
      Angegeben von:
      getPath in Schnittstelle IJavaModelStatus
      Gibt zurück:
      the path that caused the failure, or null if none
      Siehe auch:
    • getSeverity

      public int getSeverity()
      Angegeben von:
      getSeverity in Schnittstelle org.eclipse.core.runtime.IStatus
      Setzt außer Kraft:
      getSeverity in Klasse org.eclipse.core.runtime.Status
      Siehe auch:
      • IStatus.getSeverity()
    • getString

      public String getString()
      Veraltet.
      Beschreibung aus Schnittstelle kopiert: IJavaModelStatus
      Returns the string associated with the failure (see specification of the status code), or null if no string is related to this particular status code.
      Angegeben von:
      getString in Schnittstelle IJavaModelStatus
      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 to getCode() == IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST.
      Angegeben von:
      isDoesNotExist in Schnittstelle IJavaModelStatus
      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 Schnittstelle org.eclipse.core.runtime.IStatus
      Setzt außer Kraft:
      isMultiStatus in Klasse org.eclipse.core.runtime.Status
      Siehe auch:
      • IStatus.isMultiStatus()
    • isOK

      public boolean isOK()
      Angegeben von:
      isOK in Schnittstelle org.eclipse.core.runtime.IStatus
      Setzt außer Kraft:
      isOK in Klasse org.eclipse.core.runtime.Status
      Siehe auch:
      • IStatus.isOK()
    • matches

      public boolean matches(int mask)
      Angegeben von:
      matches in Schnittstelle org.eclipse.core.runtime.IStatus
      Setzt außer Kraft:
      matches in Klasse org.eclipse.core.runtime.Status
      Siehe auch:
      • IStatus.matches(int)
    • matches

      protected boolean matches(JavaModelStatus status, int mask)
      Helper for matches(int).
    • newMultiStatus

      public static IJavaModelStatus newMultiStatus(IJavaModelStatus[] children)
      Creates and returns a new IJavaModelStatus that is a a multi-status status.
      Siehe auch:
      • IStatus.isMultiStatus()
    • toString

      public String toString()
      Returns a printable representation of this exception for debugging purposes.
      Setzt außer Kraft:
      toString in Klasse org.eclipse.core.runtime.Status