|
|||||||||
| 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.ShortArray
public static class PrimitiveArray.ShortArray
hard-coding 3 similar classes is too much... make a function to automaticly generate classes for every primitive type.
| 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.ShortArray()
|
|
PrimitiveArray.ShortArray(short[] 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==int[].class |
CS |
newInstance()
the int[] array is copied |
CS |
P(int index)
returns from the constant-pool |
double |
PD(int index)
Returns a param as a double. |
short |
PS(int index)
|
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 |
boolean |
setS(int index,
short value)
|
| 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, setB, setC, setCountP, setD, setExec, setF, setFuel, setI, setJ, setL1, setMyFuel, setName, setObject, setPrevExec, setPType, 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, PB, PC, PF, PI, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, 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.ShortArray()
public PrimitiveArray.ShortArray(short[] array)
| Method Detail |
|---|
public java.lang.String keyword()
DefaultCS
keyword in class PrimitiveArrayCS.parent(),
CS.newInstance(),
CS.name()public double cost()
CS
cost in class CSpublic short PS(int index)
PS in class CSCS.PD(int)public double PD(int index)
CS
PD in class CSpublic int countP()
CS
countP in class DefaultCSpublic CS P(int index)
P in class DefaultCSindex - 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 setS(int index,
short value)
setS in class DefaultCSCS.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 CodeSimiansetL in class DefaultCSCS.setL(int,Object,int)
public boolean setL(int startIndex,
java.lang.Object value,
int indexQuantity)
DefaultCS
setL in interface CodeSimiansetL in class DefaultCSpublic java.lang.Object L(java.lang.Class c)
CS
L in class CSCS.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 CSpublic CS newInstance()
newInstance in class DefaultCS
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||