|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectStatus
org.aspectj.org.eclipse.jdt.internal.core.JavaModelStatus
public class JavaModelStatus
IJavaModelStatus| Field Summary | |
|---|---|
protected IStatus[] |
children
|
protected IJavaElement[] |
elements
The elements related to the failure, or null
if no elements are involved. |
protected static IStatus[] |
NO_CHILDREN
Empty children |
protected IPath |
path
The path related to the failure, or null
if no path is involved. |
protected java.lang.String |
string
The String related to the failure, or null
if no String is involved. |
static IJavaModelStatus |
VERIFIED_OK
Singleton OK object |
| Constructor Summary | |
|---|---|
JavaModelStatus()
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(CoreException coreException)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
IJavaElement[] elements)
Constructs an Java model status with the given corresponding elements. |
|
JavaModelStatus(int code,
IJavaElement element,
IPath path)
Constructs an Java model status with the given corresponding element and path |
|
JavaModelStatus(int code,
IJavaElement element,
IPath path,
java.lang.String string)
Constructs an Java model status with the given corresponding element, path and string |
|
JavaModelStatus(int code,
IJavaElement element,
java.lang.String string)
Constructs an Java model status with the given corresponding element and string |
|
JavaModelStatus(int severity,
int code,
IJavaElement element,
IPath path,
java.lang.String msg)
Constructs an Java model status with the given corresponding element and path |
|
JavaModelStatus(int severity,
int code,
java.lang.String string)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
IPath path)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
java.lang.String string)
Constructs an Java model status with no corresponding elements. |
|
JavaModelStatus(int code,
java.lang.Throwable throwable)
Constructs an Java model status with no corresponding elements. |
|
| Method Summary | |
|---|---|
protected int |
getBits()
|
IStatus[] |
getChildren()
|
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. |
java.lang.String |
getMessage()
Returns the message that is relevant to the code of this status. |
IPath |
getPath()
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. |
int |
getSeverity()
|
java.lang.String |
getString()
Deprecated. |
boolean |
isDoesNotExist()
Returns whether this status indicates that a Java model element does not exist. |
boolean |
isMultiStatus()
|
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 new IJavaModelStatus that is a
a multi-status status. |
java.lang.String |
toString()
Returns a printable representation of this exception for debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IJavaElement[] elements
null
if no elements are involved.
protected IPath path
null
if no path is involved.
protected java.lang.String string
String related to the failure, or null
if no String is involved.
protected static final IStatus[] NO_CHILDREN
protected IStatus[] children
public static final IJavaModelStatus VERIFIED_OK
| Constructor Detail |
|---|
public JavaModelStatus()
public JavaModelStatus(int code)
public JavaModelStatus(int code,
IJavaElement[] elements)
public JavaModelStatus(int code,
java.lang.String string)
public JavaModelStatus(int severity,
int code,
java.lang.String string)
public JavaModelStatus(int code,
java.lang.Throwable throwable)
public JavaModelStatus(int code,
IPath path)
public JavaModelStatus(int code,
IJavaElement element,
java.lang.String string)
public JavaModelStatus(int code,
IJavaElement element,
IPath path)
public JavaModelStatus(int code,
IJavaElement element,
IPath path,
java.lang.String string)
public JavaModelStatus(int severity,
int code,
IJavaElement element,
IPath path,
java.lang.String msg)
public JavaModelStatus(CoreException coreException)
| Method Detail |
|---|
protected int getBits()
public IStatus[] getChildren()
IStatuspublic IJavaElement[] getElements()
IJavaModelStatus
getElements in interface IJavaModelStatusIJavaModelStatuspublic java.lang.String getMessage()
public IPath getPath()
IJavaModelStatusnull if the failure is not
one of DEVICE_PATH, INVALID_PATH,
PATH_OUTSIDE_PROJECT, or RELATIVE_PATH.
getPath in interface IJavaModelStatusnull if noneIJavaModelStatus.getPath()public int getSeverity()
IStatus#getSeverity()public java.lang.String getString()
IJavaModelStatusnull if no string is related to this
particular status code.
getString in interface IJavaModelStatusnull if noneIJavaModelStatus.getString()public boolean isDoesNotExist()
IJavaModelStatusgetCode() == IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST.
isDoesNotExist in interface IJavaModelStatustrue if the status code indicates that a Java model
element does not existIJavaModelStatus.isDoesNotExist()public boolean isMultiStatus()
IStatus#isMultiStatus()public boolean isOK()
IStatus#isOK()public boolean matches(int mask)
IStatus#matches(int)
protected boolean matches(JavaModelStatus status,
int mask)
public static IJavaModelStatus newMultiStatus(IJavaModelStatus[] children)
IJavaModelStatus that is a
a multi-status status.
IStatus#isMultiStatus()public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||