diff --git a/README b/README new file mode 100644 index 0000000..e20498e --- /dev/null +++ b/README @@ -0,0 +1 @@ +I don't know yet if this is even possible. but lets say yes. diff --git a/Test.class b/Test.class new file mode 100644 index 0000000..c8b4bfa Binary files /dev/null and b/Test.class differ diff --git a/app.py b/app.py new file mode 100644 index 0000000..719267b --- /dev/null +++ b/app.py @@ -0,0 +1,39 @@ +#! /usr/bin/python + +# -*- Mode: Python -*- +# -*- coding: UTF-8 -*- +# Copyright (C) 2009 by Artur Ventura +# +# File: app.py +# Time-stamp: Sun Aug 9 16:30:18 2009 +# +# Author: Artur Ventura +# + + +import web +import commands + +urls = ( + '/(.*)', 'index', + +) +app = web.application(urls, globals()) + +class index: + def GET(self,filename): + if filename.endswith("favicon.ico"): + web.webapi.notfound() + return "" + if filename == "": + return file("index.html").read() + try: + return file(filename).read() + except: + web.webapi.notfound() + return "" + + + +if __name__ == "__main__": + app.run() diff --git a/constantPool.js b/constantPool.js new file mode 100644 index 0000000..1097067 --- /dev/null +++ b/constantPool.js @@ -0,0 +1,90 @@ +var CONSTANT_Class = 7; +var CONSTANT_Fieldref = 9; +var CONSTANT_Methodref = 10; +var CONSTANT_InterfaceMethodref = 11; +var CONSTANT_String = 8; +var CONSTANT_Integer = 3; +var CONSTANT_Float = 4; +var CONSTANT_Long = 5; +var CONSTANT_Double = 6; +var CONSTANT_NameAndType = 12; +var CONSTANT_Utf8 = 1; + +constUtf8 = function(){ + this.str = null; + this.read = ( dStream ) { + StringBuffer strBuf; + int len, charCnt; + byte one_byte; + char one_char; + + one_char = '\u0000'; + len = readU2( dStream ); + strBuf = new StringBuffer(); + charCnt = 0; + while (charCnt < len) { + one_byte = (byte)readU1( dStream ); + charCnt++; + if ((one_byte >> 7) == 1) { + short tmp; + + // its a multi-byte character + tmp = (short)(one_byte & 0x3f); // Bits 5..0 (six bits) + // read the next byte + one_byte = (byte)readU1( dStream ); + charCnt++; + tmp = (short)(tmp | ((one_byte & 0x3f) << 6)); + if ((one_byte >> 6) == 0x2) { + // We have 12 bits so far, get bits 15..12 + one_byte = (byte)readU1( dStream ); + charCnt++; + one_byte = (byte)(one_byte & 0xf); + tmp = (short)(tmp | (one_byte << 12)); + } + one_char = (char)tmp; + } + else { + one_char = (char)one_byte; + } + strBuf.append(one_char); + } // while + this.str = strBuf.toString(); + } // read +}; + +allocConstEntry = function(tag){ + var obj = null; + + switch ( tag ) { + case CONSTANT_Utf8: + obj = new constUtf8(); + break; + case CONSTANT_Integer: + obj = new constInt(); + break; + case CONSTANT_Float: + obj = new constFloat(); + break; + case CONSTANT_Long: + obj = new constLong(); + break; + case CONSTANT_Double: + obj = new constDouble(); + break; + case CONSTANT_Class: + case CONSTANT_String: + obj = new constClass_or_String(); + break; + case CONSTANT_Fieldref: + case CONSTANT_Methodref: + case CONSTANT_InterfaceMethodref: + obj = new constRef(); + break; + case CONSTANT_NameAndType: + obj = new constName_and_Type_info(); + break; + default: + System.out.println("allocConstEntry: bad tag value = " + tag); + break; + } // switch +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..26bb739 --- /dev/null +++ b/index.html @@ -0,0 +1,33 @@ + +
+Variable | Value |
---|---|
$k | $prettify(v) |
No data.
+ +Python | +$frames[0].filename in $frames[0].function, line $frames[0].lineno | +
---|---|
Web | +$ctx.method $ctx.home$ctx.path | +
$frame.filename
in $frame.function
+ $if frame.context_line:
+
+ $ctx.output
+
+ You're seeing this error because you have web.config.debug
+ set to True
. Set that to False
if you don't to see this.
+