Package com.github.fracpete.jshell.event
Class JShellExecEvent
java.lang.Object
java.util.EventObject
com.github.fracpete.jshell.event.JShellExecEvent
- All Implemented Interfaces:
Serializable
Events sent by the
JShellExec.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionJShellExecEvent(JShellExec source, JShellExecEvent.EventType type) Constructs a prototypical Event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the JShellExec instance that generated the event.getType()Returns the event type.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
m_Type
the event type.
-
-
Constructor Details
-
JShellExecEvent
Constructs a prototypical Event.- Parameters:
source- the source from which the Event initially originated- Throws:
IllegalArgumentException- if source is null
-
-
Method Details
-
getJShellExec
Returns the JShellExec instance that generated the event.- Returns:
- the source
-
getType
Returns the event type.- Returns:
- the event type
-