|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpsengines.ProgramLoader
It describes the Program loader component of PS-View.
Program Loader is responsible the loading of the code and it's (run-time) clarifaction of what kind of components will use be. The Program Loader class uses the reflection mechanism to add dynamically new operators.
| Constructor Summary | |
ProgramLoader(java.io.PipedWriter pw)
Creates an instance of Program Loader. |
|
ProgramLoader(java.lang.String fileName)
Creates an instance of Program Loader. |
|
| Method Summary | |
void |
changeInputToKeyboard(java.io.PipedWriter pw)
Changes the tokenizers input from file to keyboard. |
int |
findToken(java.lang.String str)
Returns the first occurance of a token in the list where the names of the valid operator classes are saved(binary search). |
PSObject |
nextPSObject()
Returns the next PSObject found in the stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProgramLoader(java.lang.String fileName)
throws java.lang.Throwable
public ProgramLoader(java.io.PipedWriter pw)
throws java.lang.Throwable
| Method Detail |
public void changeInputToKeyboard(java.io.PipedWriter pw)
throws java.lang.Throwable
java.lang.Throwable
public PSObject nextPSObject()
throws java.io.IOException
java.io.IOExceptionpublic int findToken(java.lang.String str)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||