|
|||||||||
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 | +--gnu.jel.OPcondtnl
Fields inherited from class gnu.jel.OP |
next, prev, resID, resType |
Constructor Summary | |
OPcondtnl(TypesStack typesStk,
OPlist trueList,
OPlist falseList)
Creates conditional operator. |
Method Summary | |
protected void |
compile(ClassFile cf)
Called to generate the code implementing this OP. |
protected void |
eval(OPlist list)
Attempts to evaluate this function. |
int |
getNParams()
Returns number of parameters for this function. |
java.lang.String |
toString()
|
Methods inherited from class gnu.jel.OPfunction |
compile_par, compile_pre |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OPcondtnl(TypesStack typesStk, OPlist trueList, OPlist falseList) throws CompilationException
typesStk
- stack holding current types.trueList
- operations of "true" branch.falseList
- operations of "false" branch.Method Detail |
public int getNParams()
getNParams
in class OPfunction
protected void compile(ClassFile cf)
OP
compile
in class OP
gnu.jel.OP
cf
- class file to write the code into.protected void eval(OPlist list)
OPfunction
eval
in class OPfunction
gnu.jel.OPfunction
list
- is the list of OPs this one belong to,
if eval is unsuccessful this list is not modified.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |