codesimian
Class InnerFiles

java.lang.Object
  extended by codesimian.CS<CSGeneric>
      extended by codesimian.DefaultCS
          extended by codesimian.InnerFiles
All Implemented Interfaces:
CodeSimian
Direct Known Subclasses:
GetCSReflectingInnerFile

public class InnerFiles
extends DefaultCS

Some of the files inside CodeSimian.jar can be updated, and new files can be added, all without using the hard-drive (unless you save the new JAR file there).

These inner classes require the Jars.findSelf(boolean) function find CodeSimian.jar correctly, so this might not work in an applet, but if it is an applet, we probably could not save the JAR to hard-drive anyways, but an applet could be programmed to send the JAR through the internet, so it is potentially useful to work in applets.

These "internal files" do not exist until a new CodeSimian.jar is created which contains them all. You do not save individual files. You save all new files inside a new JAR. Internal files include all files inside CodeSimian.jar. You dont need to add them, but you maybe can overwrite them. New files can be added, and if you're careful, existing files can be deleted.


Nested Class Summary
static class InnerFiles.AllInternalFileNames
          Starts as an empty list.
static class InnerFiles.DeleteInternalFile
          deletes a file from the files decompressed from CodeSimian.JAR, which together are often saved as a new JAR file with the commands saveUpdatedSelf() or saveUpdatedSelf(fileName).
static class InnerFiles.GetInnerFile
          reversed.
static class InnerFiles.GetInternalFile
          Deprecated. 
static class InnerFiles.InnerFileExists
          returns 1 if inner file exists, else returns 0
static class InnerFiles.SetInnerFile
          reversed.
static class InnerFiles.SetInternalFile
          Deprecated. 
 
Field Summary
 
Fields inherited from class codesimian.CS
DESCRIPTION, END, EXECPROXY, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER, THIS
 
Constructor Summary
InnerFiles()
           
 
Method Summary
static long changesSinceCodesimianStarted()
           
 boolean codesimianCanModify(java.lang.String innerFilePathName)
          returns false if codesimian is not allowed to modify the file
 double DForProxy()
          returns quantity of inner files
 
Methods inherited from class codesimian.DefaultCS
B, C, countP, decrementMyFuel, deleteP, description, F, fuel, getExec, getObject, heap, I, indexP, indexPName, insertB, insertC, insertD, insertF, insertI, insertJ, insertL, insertL, insertL1, insertP, insertS, insertZ, J, javaCode, keyword, LForProxy, LForProxy, minP, myFuel, name, newInstance, objectToCS, objectToCSArray, objectToCSArray, P, prevD, prevL, PType, S, setB, setC, setCountP, setD, setD, setExec, setF, setFuel, setI, setJ, setL, setL, setL, setL1, setMyFuel, setName, setObject, setP, 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, cost, D, deleteP, FForProxy, GETB, GETC, GETD, GETF, GETI, GETJ, GETL, GETS, GETZ, IForProxy, isIllusion, JForProxy, L, L, L, L, L, maxD, maxP, minD, overwrites, parent, 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, 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

InnerFiles

public InnerFiles()
Method Detail

changesSinceCodesimianStarted

public static long changesSinceCodesimianStarted()

DForProxy

public double DForProxy()
returns quantity of inner files

Specified by:
DForProxy in class DefaultCS

codesimianCanModify

public boolean codesimianCanModify(java.lang.String innerFilePathName)
returns false if codesimian is not allowed to modify the file