|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttcl.lang.channel.FileEventScript
public class FileEventScript
AssocData structure that keeps the script for one fileevent command. The existence of a FileEventScript object indicates the existence of a particular 'fileevent' command instance. Once the 'fileevent' command is called to delete the script, or if the interpreter is destroyed, the associated FileEventScript is disposed which signals FileEvents associated with this script to discontinue.
Method Summary | |
---|---|
static void |
dispose(Interp interp,
Channel channel,
int type)
Remove a FileEventScript, and hence all FileEvents, if it exists |
void |
disposeAssocData(Interp interp)
This method is called when the interpreter is destroyed or when Interp.deleteAssocData is called on a registered AssocData instance. |
static FileEventScript |
find(Interp interp,
Channel channel,
int type)
Find a FileEventScript if it exists |
TclObject |
getScript()
|
static void |
register(Interp interp,
Channel channel,
int type,
TclObject script)
Create a FileEventScript, and register it in the interpreter, and queue the first FileEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void register(Interp interp, Channel channel, int type, TclObject script)
interp
- Interpreter for the fileeventchannel
- name of channel that the fileEvent is registered ontype
- either FileEvent.READABLE or FileEvent.WRITEABLEscript
- script to registerpublic TclObject getScript()
public void disposeAssocData(Interp interp)
AssocData
disposeAssocData
in interface AssocData
interp
- the interpreter in which this AssocData instance is registered inpublic static FileEventScript find(Interp interp, Channel channel, int type)
interp
- Interpreter to search for the fileeventchannel
- name of channel that the fileEvent is registered ontype
- either FileEvent.READABLE or FileEvent.WRITEABLE
public static void dispose(Interp interp, Channel channel, int type)
interp
- Interpreter to search for the fileeventchannel
- name of channel that the fileEvent is registered ontype
- either FileEvent.READABLE or FileEvent.WRITEABLE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |