|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcodesimian.CS
codesimian.IndependentCS
codesimian.Compile.SmallSymbol
public abstract static class Compile.SmallSymbol
a symbol that uses very little memory and has only 1 variable (a byte)
specifying how many semicolons that precede the symbol.
If the symbol is # and the variable is 4, keyword() returns ";;;;#".
The reason this class needs to use so little memory is that there
are many parenthesis (and other symbols) in CodeSimian language.
It averages to approximately 1 parenthesi per object, doubling the quantity of objects,
but memory only increases by approximately 10%
because IndependentCS (the parent class of SmallSymbol) contains NO VARIABLES.
| Field Summary |
|---|
| Fields inherited from class codesimian.CS |
|---|
DESCRIPTION, END, EXECPROXY, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER, THIS |
| Constructor Summary | |
|---|---|
Compile.SmallSymbol()
|
|
| Method Summary | |
|---|---|
byte |
B()
|
byte |
BForProxy()
|
double |
D()
Execute this CS and cast to double. |
double |
DForProxy()
Execute this CS and cast to double. |
abstract char |
getSymbol()
examples: # ( ) |
java.lang.String |
keyword()
Returns the keyword of this CS or (after more code is finished) returns parent().name(); Keyword() needs to be removed. |
java.lang.String |
name()
cant change this name because that would require a String variable and IndependentCS must use very little memory. |
CS |
newInstance()
returns a new CS of this type with the same B() value |
java.lang.String |
semi(int quantity)
|
boolean |
setB(byte b)
set nonnegative quantity of semicolons |
boolean |
setD(double d)
set nonnegative quantity of semicolons |
| Methods inherited from class codesimian.IndependentCS |
|---|
C, CForProxy, countP, decrementMyFuel, deleteP, description, F, FForProxy, fuel, getExec, heap, I, IForProxy, insertD, insertL, insertL, insertL1, insertP, J, JForProxy, L, L, LForProxy, LForProxy, maxP, minP, myFuel, P, parent, prevD, prevL, PType, S, setD, setFuel, setL, setL, setL, setL1, setMyFuel, setP, setPrevExec, SForProxy, toString, V, VForProxy, Z, ZForProxy |
| Methods inherited from class codesimian.CS |
|---|
addB, addC, addD, addF, addI, addJ, addL, addP, addP, addP, addP, addP, addS, addZ, clone, cost, deleteP, GETB, GETC, GETD, GETF, GETI, GETJ, GETL, getObject, GETS, GETZ, indexP, indexPName, insertB, insertC, insertF, insertI, insertJ, insertS, insertZ, isIllusion, L, L, L, maxD, minD, overwrites, parsePriority, PB, PC, PD, PF, PI, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, PS, PZ, reflect, reflect, reflect6, SETB, setB, setC, SETC, setC, setCost, SETD, setDescription, setExec, setF, SETF, setF, setHeap, setI, SETI, setI, setJ, setJ, SETJ, SETL, setL, setL, setName, setObject, setParent, setParsePriority, setProxyOf, setPType, setS, setS, SETS, setTester, setZ, SETZ, setZ, tester, toJavaCode, voidReflect |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Compile.SmallSymbol()
| Method Detail |
|---|
public byte B()
B in class IndependentCSExecute this CS and cast to bytepublic byte BForProxy()
BForProxy in class IndependentCSCS.DForProxy()public boolean setB(byte b)
setB in class CSCS.setD(double)public double D()
CS
D in class IndependentCSCS.L(java.lang.Class)public double DForProxy()
CS
DForProxy in class IndependentCSpublic boolean setD(double d)
setD in class IndependentCSpublic java.lang.String semi(int quantity)
public abstract char getSymbol()
public java.lang.String keyword()
CS
keyword in class IndependentCSCS.parent(),
CS.newInstance(),
CS.name()public java.lang.String name()
IndependentCS
name in class IndependentCSpublic CS newInstance()
newInstance in class IndependentCS
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||