|
|||||||||
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 IndependentCS
Execute this CS and cast to byte
public byte BForProxy()
BForProxy
in class IndependentCS
CS.DForProxy()
public boolean setB(byte b)
setB
in class CS
CS.setD(double)
public double D()
CS
D
in class IndependentCS
CS.L(java.lang.Class)
public double DForProxy()
CS
DForProxy
in class IndependentCS
public boolean setD(double d)
setD
in class IndependentCS
public java.lang.String semi(int quantity)
public abstract char getSymbol()
public java.lang.String keyword()
CS
keyword
in class IndependentCS
CS.parent()
,
CS.newInstance()
,
CS.name()
public java.lang.String name()
IndependentCS
name
in class IndependentCS
public CS newInstance()
newInstance
in class IndependentCS
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |