|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bluej.extensions.event.CompileEvent
public class CompileEvent
This class encapsulates compiler events. It allows an extension writer to know when a compilation starts and finishes, whether it succeeds or fails, and what warnings or errors are generated.
Field Summary | |
---|---|
static int |
COMPILE_DONE_EVENT
Event generated when a compilation finishes successfully. |
static int |
COMPILE_ERROR_EVENT
Event generated when a compilation error occurs. |
static int |
COMPILE_FAILED_EVENT
Event generated when a compilation finishes unsuccessfully. |
static int |
COMPILE_START_EVENT
Event generated when compilation begins. |
static int |
COMPILE_WARNING_EVENT
Event generated when a compilation warning occurs. |
Constructor Summary | |
---|---|
CompileEvent(int anEventId,
java.io.File[] aFileNames)
Constructor for a CompileEvent. |
Method Summary | |
---|---|
int |
getErrorLineNumber()
Returns the line number where the compilation error occurs. |
java.lang.String |
getErrorMessage()
Returns the error message generated by the compiler. |
int |
getEvent()
Returns the eventId, one of the values defined. |
java.io.File[] |
getFiles()
Returns an array of zero, one or more files related to this event. |
void |
setErrorLineNumber(int aLineNumber)
Sets the line number where an error or warning occurred. |
void |
setErrorMessage(java.lang.String anErrorMessage)
Sets the error message for an error or warning event. |
java.lang.String |
toString()
Returns a meaningful description of this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int COMPILE_START_EVENT
public static final int COMPILE_WARNING_EVENT
public static final int COMPILE_ERROR_EVENT
public static final int COMPILE_DONE_EVENT
public static final int COMPILE_FAILED_EVENT
Constructor Detail |
---|
public CompileEvent(int anEventId, java.io.File[] aFileNames)
Method Detail |
---|
public int getEvent()
public java.io.File[] getFiles()
public void setErrorLineNumber(int aLineNumber)
public int getErrorLineNumber()
public void setErrorMessage(java.lang.String anErrorMessage)
public java.lang.String getErrorMessage()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |