|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--graph3d.CodeGenerator
Inner Class Summary | |
static class |
CodeGenerator.DataSizeExceededException
Thrown, if the data buffer size required by this code generator exceeds the jgraph stack machine data buffer size. |
Inner classes inherited from class mathc.CodeGenerator |
mathc.CodeGenerator.Exception |
Method Summary | |
void |
acos()
ACOS (trigonometrical acosine function) opcode. |
void |
and()
AND (logical and) opcode. |
void |
asin()
ASIN (trigonometrical asine function) opcode. |
void |
atan()
ATAN (trigonometrical atan function) opcode. |
void |
b2i()
B2J (convert bool to int) opcode. |
int |
beginFunction(java.lang.String name,
mathc.FunctionDefinition function)
The method creates a new function. |
void |
beq()
BEQ (boolean equality) opcode. |
void |
bne()
BNE (boolean not equal) opcode. |
void |
bret()
BRET (return boolean) opcode. |
void |
call(mathc.FunctionDescriptor proto)
CALL (call function) opcode. |
void |
cos()
COS (trigonometrical cosine function) opcode. |
void |
dup()
DUP (duplicate item on stack top) opcode. |
void |
dup2()
DUP2 (duplicate item on stack top) opcode. |
int |
endFunction()
The method indicates the end of a function definition. |
void |
exch_11()
EXCH (exchange 2 1-cell items on opstack top) opcode. |
void |
exch_12()
EXCH (exchange 1-cell and 2-cell item on opstack top) opcode. |
void |
exch_21()
EXCH (exchange 2-cell and 1-cell item on opstack top) opcode. |
void |
exch_22()
EXCH (exchange 2 2-cell items on opstack top) opcode. |
void |
f2i()
F2I (convert float to int) opcode. |
void |
fadd()
FADD (float add) opcode. |
void |
fdiv()
FDIV (float divide) opcode. |
void |
feq()
FEQ (float equality) opcode. |
void |
fge()
FGE (float greater or equals) opcode. |
void |
fgt()
FGT (float greater than) opcode. |
void |
fle()
FLE (float less or equals) opcode. |
void |
flt()
FLT (float less than) opcode. |
void |
flush()
Flushes the internal function list. |
void |
fmul()
FMUL (float multiply) opcode. |
void |
fne()
FNE (float inequality) opcode. |
void |
fneg()
FNEG (float negate) opcode. |
void |
fpow()
FPOW (float power) opcode. |
void |
fret()
FRET (return float) opcode. |
void |
fsub()
FSUB (float subtract) opcode. |
java.util.Vector |
getFunctions()
Returns a vector of functions registered by the generator. |
static CodeGenerator |
getInstance()
|
void |
i2b()
I2B (convert int to bool) opcode. |
void |
i2f()
I2F (convert int to float) opcode. |
void |
iadd()
IADD (integer add) opcode. |
void |
idiv()
IDIV (integer divide) opcode. |
void |
ieq()
IEQ (integer equality) opcode. |
void |
ige()
IGE (integer greater or equals) opcode. |
void |
igt()
IGT (integer greater than) opcode. |
void |
ile()
ILE (integer less or equals) opcode. |
void |
ilt()
ILT (integer less than) opcode. |
void |
imod()
IMOD (modulo) opcode. |
void |
imul()
IMUL (integer multiply) opcode. |
void |
ine()
INE (integer not equal) opcode. |
void |
ineg()
INEG (integer negate) opcode. |
void |
ipow()
IPOW (integer power) opcode. |
void |
iret()
IRET (return integer) opcode. |
void |
isub()
ISUB (integer subtract) opcode. |
void |
j(int hlabel)
J (uncoditional jump) opcode. |
void |
jf(int hlabel)
J (jump if false) opcode. |
void |
jt(int hlabel)
J (jump if true) opcode. |
int |
newLabel()
The method returns a handle to a new label. |
void |
not()
NOT (logical negate) opcode. |
void |
or()
OR (logical or) opcode. |
void |
pop()
POP opcode. |
void |
pop2()
POP2 opcode. |
void |
pushf()
PUSHF (push false) opcode. |
void |
pushfc(double value)
PUSHFC (push float constant) opcode. |
void |
pushfl(int hlocal)
PUSHFL (push float local var) opcode. |
void |
pushic(int value)
PUSHIC (push int constant) opcode. |
void |
pushil(int hlocal)
PUSHIL (push int local var) opcode. |
void |
pusht()
PUSHT (push true) opcode. |
void |
pushxc(int hconst)
PUSHXC (push executable) opcode. |
void |
pushxl(int hlocal)
PUSHXL (push function local var) opcode. |
void |
setLabel(int hlabel)
Sets a label. |
void |
sin()
SIN (trignometrical sine function) opcode. |
void |
stbl(int hlocal)
STBL (store boolean local var) opcode. |
void |
stfl(int hlocal)
STFL (store float local var) opcode. |
void |
stil(int hlocal)
STIL (store int local var) opcode. |
void |
stxl(int hlocal)
STXL (store function local var) opcode. |
void |
tan()
TAN (trigonometrical tan function) opcode. |
void |
xeq()
XEQ (function equality) opcode. |
void |
xne()
XNE (function not equal) opcode. |
void |
xor()
XOR (logical exclusive or) opcode. |
void |
xret()
XRET (return function) opcode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static CodeGenerator getInstance()
public void flush()
public java.util.Vector getFunctions()
public int beginFunction(java.lang.String name, mathc.FunctionDefinition function)
beginFunction
in interface mathc.CodeGenerator
name
- the function's nameproto
- the function's prototypepublic int endFunction() throws mathc.CodeGenerator.Exception
endFunction
in interface mathc.CodeGenerator
public int newLabel()
newLabel
in interface mathc.CodeGenerator
public void setLabel(int hlabel)
setLabel
in interface mathc.CodeGenerator
hlabel
- a label handlepublic void pushfc(double value) throws mathc.CodeGenerator.Exception
pushfc
in interface mathc.CodeGenerator
value
- a float constantpublic void pushic(int value) throws mathc.CodeGenerator.Exception
pushic
in interface mathc.CodeGenerator
value
- an int valuepublic void pushxc(int hconst) throws mathc.CodeGenerator.Exception
pushxc
in interface mathc.CodeGenerator
hconst
- a function handlepublic void pushfl(int hlocal) throws mathc.CodeGenerator.Exception
pushfl
in interface mathc.CodeGenerator
hlocal
- a float local var addresspublic void pushil(int hlocal) throws mathc.CodeGenerator.Exception
pushil
in interface mathc.CodeGenerator
hlocal
- an int local var addresspublic void pushxl(int hlocal) throws mathc.CodeGenerator.Exception
pushxl
in interface mathc.CodeGenerator
hlocal
- a function local var addresspublic void pusht() throws mathc.CodeGenerator.Exception
pusht
in interface mathc.CodeGenerator
public void pushf() throws mathc.CodeGenerator.Exception
pushf
in interface mathc.CodeGenerator
public void stbl(int hlocal) throws mathc.CodeGenerator.Exception
stbl
in interface mathc.CodeGenerator
hlocal
- a boolean local var addresspublic void stfl(int hlocal) throws mathc.CodeGenerator.Exception
stfl
in interface mathc.CodeGenerator
hlocal
- a float local var addresspublic void stil(int hlocal) throws mathc.CodeGenerator.Exception
stil
in interface mathc.CodeGenerator
hlocal
- an int local var addresspublic void stxl(int hlocal) throws mathc.CodeGenerator.Exception
stxl
in interface mathc.CodeGenerator
hlocal
- a function local var addresspublic void pop() throws mathc.CodeGenerator.Exception
pop
in interface mathc.CodeGenerator
public void pop2() throws mathc.CodeGenerator.Exception
pop2
in interface mathc.CodeGenerator
public void dup() throws mathc.CodeGenerator.Exception
dup
in interface mathc.CodeGenerator
public void dup2() throws mathc.CodeGenerator.Exception
dup2
in interface mathc.CodeGenerator
public void exch_11() throws mathc.CodeGenerator.Exception
exch_11
in interface mathc.CodeGenerator
public void exch_22() throws mathc.CodeGenerator.Exception
exch_22
in interface mathc.CodeGenerator
public void exch_12() throws mathc.CodeGenerator.Exception
exch_12
in interface mathc.CodeGenerator
public void exch_21() throws mathc.CodeGenerator.Exception
exch_21
in interface mathc.CodeGenerator
public void call(mathc.FunctionDescriptor proto) throws mathc.CodeGenerator.Exception
call
in interface mathc.CodeGenerator
public void bret() throws mathc.CodeGenerator.Exception
bret
in interface mathc.CodeGenerator
public void fret() throws mathc.CodeGenerator.Exception
fret
in interface mathc.CodeGenerator
public void iret() throws mathc.CodeGenerator.Exception
iret
in interface mathc.CodeGenerator
public void xret() throws mathc.CodeGenerator.Exception
xret
in interface mathc.CodeGenerator
public void j(int hlabel) throws mathc.CodeGenerator.Exception
j
in interface mathc.CodeGenerator
hlabel
- a handle to the jump target labelpublic void jt(int hlabel) throws mathc.CodeGenerator.Exception
jt
in interface mathc.CodeGenerator
hlabel
- a handle to the jump target labelpublic void jf(int hlabel) throws mathc.CodeGenerator.Exception
jf
in interface mathc.CodeGenerator
hlabel
- a handle to the jump target labelpublic void b2i() throws mathc.CodeGenerator.Exception
b2i
in interface mathc.CodeGenerator
public void f2i() throws mathc.CodeGenerator.Exception
f2i
in interface mathc.CodeGenerator
public void i2b() throws mathc.CodeGenerator.Exception
i2b
in interface mathc.CodeGenerator
public void i2f() throws mathc.CodeGenerator.Exception
i2f
in interface mathc.CodeGenerator
public void beq() throws mathc.CodeGenerator.Exception
beq
in interface mathc.CodeGenerator
public void bne() throws mathc.CodeGenerator.Exception
bne
in interface mathc.CodeGenerator
public void fadd() throws mathc.CodeGenerator.Exception
fadd
in interface mathc.CodeGenerator
public void fsub() throws mathc.CodeGenerator.Exception
fsub
in interface mathc.CodeGenerator
public void fmul() throws mathc.CodeGenerator.Exception
fmul
in interface mathc.CodeGenerator
public void fdiv() throws mathc.CodeGenerator.Exception
fdiv
in interface mathc.CodeGenerator
public void fpow() throws mathc.CodeGenerator.Exception
fpow
in interface mathc.CodeGenerator
public void fneg() throws mathc.CodeGenerator.Exception
fneg
in interface mathc.CodeGenerator
public void fgt() throws mathc.CodeGenerator.Exception
fgt
in interface mathc.CodeGenerator
public void fge() throws mathc.CodeGenerator.Exception
fge
in interface mathc.CodeGenerator
public void flt() throws mathc.CodeGenerator.Exception
flt
in interface mathc.CodeGenerator
public void fle() throws mathc.CodeGenerator.Exception
fle
in interface mathc.CodeGenerator
public void feq() throws mathc.CodeGenerator.Exception
feq
in interface mathc.CodeGenerator
public void fne() throws mathc.CodeGenerator.Exception
fne
in interface mathc.CodeGenerator
public void iadd() throws mathc.CodeGenerator.Exception
iadd
in interface mathc.CodeGenerator
public void isub() throws mathc.CodeGenerator.Exception
isub
in interface mathc.CodeGenerator
public void imul() throws mathc.CodeGenerator.Exception
imul
in interface mathc.CodeGenerator
public void idiv() throws mathc.CodeGenerator.Exception
idiv
in interface mathc.CodeGenerator
public void imod() throws mathc.CodeGenerator.Exception
imod
in interface mathc.CodeGenerator
public void ipow() throws mathc.CodeGenerator.Exception
ipow
in interface mathc.CodeGenerator
public void ineg() throws mathc.CodeGenerator.Exception
ineg
in interface mathc.CodeGenerator
public void igt() throws mathc.CodeGenerator.Exception
igt
in interface mathc.CodeGenerator
public void ige() throws mathc.CodeGenerator.Exception
ige
in interface mathc.CodeGenerator
public void ilt() throws mathc.CodeGenerator.Exception
ilt
in interface mathc.CodeGenerator
public void ile() throws mathc.CodeGenerator.Exception
ile
in interface mathc.CodeGenerator
public void ieq() throws mathc.CodeGenerator.Exception
ieq
in interface mathc.CodeGenerator
public void ine() throws mathc.CodeGenerator.Exception
ine
in interface mathc.CodeGenerator
public void xeq() throws mathc.CodeGenerator.Exception
xeq
in interface mathc.CodeGenerator
public void xne() throws mathc.CodeGenerator.Exception
xne
in interface mathc.CodeGenerator
public void and() throws mathc.CodeGenerator.Exception
and
in interface mathc.CodeGenerator
public void or() throws mathc.CodeGenerator.Exception
or
in interface mathc.CodeGenerator
public void xor() throws mathc.CodeGenerator.Exception
xor
in interface mathc.CodeGenerator
public void not() throws mathc.CodeGenerator.Exception
not
in interface mathc.CodeGenerator
public void sin() throws mathc.CodeGenerator.Exception
sin
in interface mathc.CodeGenerator
public void cos() throws mathc.CodeGenerator.Exception
cos
in interface mathc.CodeGenerator
public void tan() throws mathc.CodeGenerator.Exception
tan
in interface mathc.CodeGenerator
public void asin() throws mathc.CodeGenerator.Exception
asin
in interface mathc.CodeGenerator
public void acos() throws mathc.CodeGenerator.Exception
acos
in interface mathc.CodeGenerator
public void atan() throws mathc.CodeGenerator.Exception
atan
in interface mathc.CodeGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |