|
Java API by Zvi Har’El |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcf.ClassFile
cf.View
class View
Class View views Java class files. This Java application is
launched by the command
java [-Dverbose] [-Dprint] cf.View [class] ...
where each class is given as a Java fully qualified class name or as a file
name. If the file is a Java archive, all the class files in it are viewed.
Unless the verbose system property is set, the constant pool is
not viewed. If a Java Frame cannot be opened, or if the print
system property is set, the classes are printed on the system standard
output.
Note that when viewing Java 2 bootstrap classes, the
oldjava
launcher must be used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cf.ClassFile |
|---|
ClassFile.ByteArray |
| Field Summary | |
|---|---|
private StringBuffer |
buffer
|
private static Choice |
choice
|
private short |
cPConstantValue
|
private short |
cPExceptions
|
private short |
cPInnerClasses
|
private short |
cPLineNumberTable
|
private short |
cPLocalVariableTable
|
private short |
cPSourceFile
|
private static Cursor |
cursor
|
private static Frame |
frame
|
private static String[] |
newarray
|
private static String |
nl
|
private static PrintStream |
out
|
private static boolean |
print
|
private static TextArea |
text
|
private static boolean |
verbose
|
private static Hashtable |
views
|
| Fields inherited from class cf.ClassFile |
|---|
access, attributes, cP, cPCode, cPHash, fields, interfaces, major, methods, minor, superClass, thisClass |
| Constructor Summary | |
|---|---|
View()
Constructor. |
|
View(InputStream in)
Constructor. |
|
| Method Summary | |
|---|---|
private void |
escape(String s)
Views a string using escape sequences. |
private static int |
magic(String s)
|
static void |
main(String[] args)
|
(package private) void |
print(String title,
PrintStream out)
Prints the class file. |
(package private) String |
view()
Views the class file. |
private void |
view(byte[] b)
Views an attribute. |
private void |
view(char v)
Views a char. |
private void |
view(CodeAttribute ca)
Views a code attribute. |
private int |
view(DataInputStream in,
int pc)
Views the byte code by reading it from an input stream. |
private void |
view(double v)
Views a double. |
private void |
view(float v)
Views a float. |
private void |
view(int v)
Views a int. |
private void |
view(long v)
Views a long. |
private void |
view(Long h)
Views an exception handler. |
private void |
view(MemberInfo mi)
Views a method or a field. |
private void |
view(short i)
Views a constant. |
private void |
view(short i,
boolean self)
Views a constant recursively. |
private void |
view(String v)
Views a string. |
private static void |
viewText(String s)
|
| Methods inherited from class cf.ClassFile |
|---|
addInterface, cp, cp, cp, cp, cp, cp, cp, cp, desc, desc, findClassInPath, findUTF8, getBytes, getClassFile, readAttribute, renameClass, setName, setSuper, strip, toUTF8, write, write, writeAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String[] newarray
private static final String nl
private static final PrintStream out
private static final boolean print
private static final boolean verbose
private static Choice choice
private static Cursor cursor
private static Hashtable views
private static Frame frame
private static TextArea text
private final short cPConstantValue
private final short cPExceptions
private final short cPInnerClasses
private final short cPLineNumberTable
private final short cPLocalVariableTable
private final short cPSourceFile
private StringBuffer buffer
| Constructor Detail |
|---|
View()
View(InputStream in) throws IOException
in - an input stream
IOException| Method Detail |
|---|
public static void main(String[] args)
throws Exception
Exceptionprivate static void viewText(String s)
void print(String title,
PrintStream out)
String view()
private void view(short i)
i - an index to the constant pool
private void view(short i,
boolean self)
i - an index to the constant poolself - set for self callprivate void view(String v)
private void view(char v)
private void view(int v)
private void view(long v)
private void view(float v)
private void view(double v)
private void escape(String s)
private void view(MemberInfo mi)
mi - the memberprivate void view(CodeAttribute ca)
ca - the attributeprivate void view(Long h)
h - the handlerprivate void view(byte[] b)
b - the attribute
private int view(DataInputStream in,
int pc)
in - the input streampc - the program counterprivate static int magic(String s)
|
Java API by Zvi Har’El |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||