eclispe中查看Android中某个类源码,出现的.class文件中的内容是什么?
小弟初学Android,想看看Android某些类的源码,下载好源码并在eclipse当中配置好之后,想查看一下一个类的源码,如:SQLiteOpenHelper这个类.按了F3之后,出现的是这样一个文件SQLiteOpenHelper.class
------------------------------------------
文件SQLiteOpenHelper.class内容如下:
------------------------------------------
/*jadclipse*/// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.// Jad home page: http://www.kpdus.com/jad.html// Decompiler options: packimports(3) radix(10) lradix(10) // Source File Name: SQLiteOpenHelper.javapackage android.database.sqlite;import android.content.Context;// Referenced classes of package android.database.sqlite:// SQLiteDatabasepublic abstract class SQLiteOpenHelper{ public SQLiteOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) { throw new RuntimeException("Stub!"); } public synchronized SQLiteDatabase getWritableDatabase() { throw new RuntimeException("Stub!"); } public synchronized SQLiteDatabase getReadableDatabase() { throw new RuntimeException("Stub!"); } public synchronized void close() { throw new RuntimeException("Stub!"); } public abstract void onCreate(SQLiteDatabase sqlitedatabase); public abstract void onUpgrade(SQLiteDatabase sqlitedatabase, int i, int j); public void onOpen(SQLiteDatabase db) { throw new RuntimeException("Stub!"); }}/* DECOMPILATION REPORT Decompiled from: C:\android-sdk-windows\platforms\android-4\android.jar Total time: 16 ms Jad reported messages/errors: Exit status: 0 Caught exceptions:*/
[pc: 0, pc: 23] local: context index: 1 type: android.content.Context
[pc: 0, pc: 23] local: attrs index: 2 type: android.util.AttributeSet
// Method descriptor #24 (Landroid/content/Context;Landroid/util/AttributeSet;I)V
// Stack: 4, Locals: 4
public TimePicker(android.content.Context context, android.util.AttributeSet attrs, int defStyle);
0 aload_0 [this]
1 aconst_null
2 checkcast android.content.Context [1]
5 aconst_null
6 checkcast android.util.AttributeSet [2]
9 iconst_0
10 invokespecial android.widget.
[解决办法]
SQLiteOpenHelper.java这个里面的内容是源代码