FileDocCategorySizeDatePackage
EVMInitInfo.javaAPI DocJ2ME CLDC 1.11266Wed Feb 05 15:56:02 GMT 2003runtime

EVMInitInfo

public class EVMInitInfo extends Object

Fields Summary
String
fromAddress
String
toAddress
String
byteCount
EVMInitInfo
next
static EVMInitInfo
initList
Constructors Summary
EVMInitInfo(String f, String t, String c, EVMInitInfo n)

    fromAddress = f;
    toAddress = t;
    byteCount = c;
    next = n;
    
Methods Summary
public static voidaddInfo(java.lang.String f, java.lang.String t, java.lang.String c)


      
           
    initList = new EVMInitInfo( f, t, c, initList );
    
public static voidwrite(CCodeWriter out, java.lang.String typename, java.lang.String dataname, java.lang.String nname)

    int n = 0;
    out.println("const struct "+typename+" "+dataname+"[] = {");
    for ( EVMInitInfo p = initList; p != null; p = p.next ){
        out.println("    { "+p.fromAddress+", "+p.toAddress+", "+p.byteCount+" },");
        n++;
    }
    out.println("};");
    out.println("const int "+nname+" = "+n+";");