|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gnu.jel.OP | +--gnu.jel.OPfunction
Fields inherited from class gnu.jel.OP |
next, prev, resID, resType |
Constructor Summary | |
OPfunction()
|
Method Summary | |
protected void |
compile_par(ClassFile cf,
int n)
Called to generate the code after a parameter is processed. |
protected void |
compile_pre(ClassFile cf)
Called to generate the code before the parameters processing starts. |
protected abstract void |
eval(OPlist list)
Attempts to evaluate this function. |
protected abstract int |
getNParams()
Returns number of parameters for this function. |
Methods inherited from class gnu.jel.OP |
compile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OPfunction()
Method Detail |
protected abstract int getNParams()
protected abstract void eval(OPlist list)
list
- is the list of OPs this one belong to,
if eval is unsuccessful this list is not modified.protected void compile_pre(ClassFile cf)
cf
- class file to write the code into.protected void compile_par(ClassFile cf, int n)
cf
- class file to write the code into.n
- the number of parameter (1 is first).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |