|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcodesimian.CS<CSGeneric>
codesimian.DefaultCS
codesimian.PrimitiveArray
codesimian.PrimitiveArray.ByteArray
public static class PrimitiveArray.ByteArray
stores all params as bytes (instead of CSs) in an array,
and converts them to CS by using the constant-pool when requested.
THIS CLASS WAS NOT AUTOMATICLY-GENERATED
BY PrimitiveArray.javaCodeForSubclass(byte[].class), but it should be.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class codesimian.PrimitiveArray |
---|
PrimitiveArray.ByteArray, PrimitiveArray.IntArray, PrimitiveArray.ShortArray |
Field Summary |
---|
Fields inherited from class codesimian.CS |
---|
DESCRIPTION, END, EXECPROXY, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER, THIS |
Constructor Summary | |
---|---|
PrimitiveArray.ByteArray()
|
|
PrimitiveArray.ByteArray(byte[] array)
|
Method Summary | |
---|---|
double |
cost()
cost() should be changed to return a float, and should be renamed to costToExecute() cost of EXECUTING this CS, not including any CSs it executes recursively. |
int |
countP()
Quantity of params. |
java.lang.String |
keyword()
For the CodeSimian language as a String. CodeSimian language keyword, like "+" "*" "max" ">" etc. Override this function if you want to specify a keyword other than how I derive them from the class name, like + for Add. Some CSs might never be intended to be used in the language by their keyword. The best example (4/05) is Num, because it is used in the language like "3.4" instead of "num()". |
java.lang.Object |
L(java.lang.Class c)
Optionally execute this CS, and definitely try to CAST it to the specified Java type. |
java.lang.Object |
L(int startIndex,
java.lang.Class type,
int indexQuantity)
efficient array-copy if type==byte[].class |
CS |
newInstance()
the byte[] array is copied |
CS |
P(int index)
returns from the constant-pool |
byte |
PB(int index)
|
double |
PD(int index)
Returns a param as a double. |
boolean |
setB(int index,
byte value)
|
boolean |
setD(int index,
double value)
sets a param to a double value. |
boolean |
setL(int startIndex,
java.lang.Object value)
needs to be tested |
boolean |
setL(int startIndex,
java.lang.Object value,
int indexQuantity)
needs to be tested |
boolean |
setL(java.lang.Object value)
setL setD setF setJ setI setS setC setB setZ are functions that SET THE VALUE OF THIS CS to some object, primitive, or array. |
boolean |
setP(int index,
CS value)
can only set indexs that already exist |
Methods inherited from class codesimian.PrimitiveArray |
---|
bitsToBytes, bytesToBits, concatByteArrays, cutBitsToMultipleOf8, D, deleteP, DForProxy, insertP, isIllusion, javaCodeForSubclass, maxP, minP, padBitsToMultipleOf8, sizeOfConcatChilds, subarray |
Methods inherited from class codesimian.DefaultCS |
---|
B, C, decrementMyFuel, description, F, fuel, getExec, getObject, heap, I, indexP, indexPName, insertB, insertC, insertD, insertF, insertI, insertJ, insertL, insertL, insertL1, insertS, insertZ, J, javaCode, LForProxy, LForProxy, myFuel, name, objectToCS, objectToCSArray, objectToCSArray, prevD, prevL, PType, S, setC, setCountP, setD, setExec, setF, setFuel, setI, setJ, setL1, setMyFuel, setName, setObject, setPrevExec, setPType, setS, setZ, start, toString, V, Z |
Methods inherited from class codesimian.CS |
---|
addB, addC, addD, addF, addI, addJ, addL, addP, addP, addP, addP, addP, addS, addZ, BForProxy, CForProxy, clone, deleteP, FForProxy, GETB, GETC, GETD, GETF, GETI, GETJ, GETL, GETS, GETZ, IForProxy, JForProxy, L, L, L, maxD, minD, overwrites, parent, parsePriority, PC, PF, PI, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, PS, PZ, reflect, reflect, reflect6, setB, SETB, setC, SETC, setCost, SETD, setDescription, setF, SETF, setHeap, setI, SETI, setJ, SETJ, SETL, setL, setL, setParent, setParsePriority, setProxyOf, setS, SETS, setTester, setZ, SETZ, SForProxy, tester, toJavaCode, VForProxy, voidReflect, ZForProxy |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveArray.ByteArray()
public PrimitiveArray.ByteArray(byte[] array)
Method Detail |
---|
public java.lang.String keyword()
DefaultCS
keyword
in class PrimitiveArray
CS.parent()
,
CS.newInstance()
,
CS.name()
public double cost()
CS
cost
in class CS
public byte PB(int index)
PB
in class CS
CS.PD(int)
public double PD(int index)
CS
PD
in class CS
public int countP()
CS
countP
in class DefaultCS
public CS P(int index)
P
in class DefaultCS
index
- range 0 (or neg?) to countP()-1 inclusiveCS.heap()
public boolean setP(int index, CS value)
setP
in class DefaultCS
public boolean setD(int index, double value)
CS
setD
in class DefaultCS
public boolean setB(int index, byte value)
setB
in class DefaultCS
CS.setD(int,double)
public boolean setL(java.lang.Object value)
CS
setL
in class DefaultCS
public boolean setL(int startIndex, java.lang.Object value)
DefaultCS
setL
in interface CodeSimian
setL
in class DefaultCS
CS.setL(int,Object,int)
public boolean setL(int startIndex, java.lang.Object value, int indexQuantity)
DefaultCS
setL
in interface CodeSimian
setL
in class DefaultCS
public java.lang.Object L(java.lang.Class c)
CS
L
in class CS
CS.Z()
,
CS.B()
,
CS.C()
,
CS.S()
,
CS.I()
,
CS.J()
,
CS.F()
,
CS.D()
public java.lang.Object L(int startIndex, java.lang.Class type, int indexQuantity)
L
in class CS
public CS newInstance()
newInstance
in class DefaultCS
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |