| Modifier and Type | Field and Description |
|---|---|
| private static final int | CLASS_MAGIC
The Magic Value that marks the start of a Java class file |
| private String | className
The class name for this class. |
| private ConstantPool | constantPool
This class' constant pool. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Vector | Returns: a vector of class names which this class referencesGet the classes which this class references. |
| public String | Returns: the class name in dot format (eg. java.lang.Object)Get the class' fully qualified name in dot format. |
| public void | read(InputStream
an InputStream from which the class will be read stream)Read the class from a data stream. |
| CLASS_MAGIC | back to summary |
|---|---|
| private static final int CLASS_MAGIC The Magic Value that marks the start of a Java class file | |
| className | back to summary |
|---|---|
| private String className The class name for this class. | |
| constantPool | back to summary |
|---|---|
| private ConstantPool constantPool This class' constant pool. | |
| ClassFile | back to summary |
|---|---|
| public ClassFile() | |
| getClassRefs | back to summary |
|---|---|
| public Vector Get the classes which this class references. | |
| getFullClassName | back to summary |
|---|---|
| public String getFullClassName() Get the class' fully qualified name in dot format.
| |
| read | back to summary |
|---|---|
| public void read(InputStream stream) throws IOException, ClassFormatError Read the class from a data stream. This method takes an InputStream as input and parses the class from the stream.
| |