Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

SourceFile Class Reference

Inheritance diagram for SourceFile:
[legend]
Collaboration diagram for SourceFile:
[legend]
List of all members.

Public Methods

 SourceFile (int name_index, int length, int sourcefile_index, ConstantPool constant_pool)
 SourceFile (SourceFile c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final int getSourceFileIndex ()
final String getSourceFileName ()
final void setSourceFileIndex (int sourcefile_index)
final String toString ()
 SourceFile (int name_index, int length, int sourcefile_index, ConstantPool constant_pool)
 SourceFile (SourceFile c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final int getSourceFileIndex ()
final String getSourceFileName ()
final void setSourceFileIndex (int sourcefile_index)
final String toString ()

Private Methods

 SourceFile (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException
 SourceFile (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException

Private Attributes

int sourcefile_index

Detailed Description

This class is derived from Attribute and represents a reference to the source file of this class. It is instantiated from the Attribute.readAttribute() method.

Version:
Id:
SourceFile.java,v 1.1.1.1 2002/01/24 03:44:00 pserver Exp
Author:
M. Dahm
See also:
Attribute

Definition at line 15 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.


Constructor & Destructor Documentation

SourceFile::SourceFile int   name_index,
int   length,
int   sourcefile_index,
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Index in constant pool to CONSTANT_Utf8
length   Content length in bytes
constant_pool   Array of constants
sourcefile_index   Index in constant pool to CONSTANT_Utf8

Definition at line 24 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

SourceFile::SourceFile int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Index in constant pool to CONSTANT_Utf8
length   Content length in bytes
file   Input stream
constant_pool   Array of constants
Exceptions:
IOException  

Definition at line 38 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

SourceFile::SourceFile SourceFile   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 47 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

SourceFile::SourceFile int   name_index,
int   length,
int   sourcefile_index,
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Index in constant pool to CONSTANT_Utf8
length   Content length in bytes
constant_pool   Array of constants
sourcefile_index   Index in constant pool to CONSTANT_Utf8

Definition at line 24 of file src/de/fub/bytecode/classfile/SourceFile.java.

SourceFile::SourceFile int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Index in constant pool to CONSTANT_Utf8
length   Content length in bytes
file   Input stream
constant_pool   Array of constants
Exceptions:
IOException  

Definition at line 38 of file src/de/fub/bytecode/classfile/SourceFile.java.

SourceFile::SourceFile SourceFile   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 47 of file src/de/fub/bytecode/classfile/SourceFile.java.


Member Function Documentation

void SourceFile::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 58 of file src/de/fub/bytecode/classfile/SourceFile.java.

void SourceFile::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 58 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

Attribute SourceFile::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 64 of file src/de/fub/bytecode/classfile/SourceFile.java.

Attribute SourceFile::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 64 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

final void SourceFile::dump DataOutputStream   file [inline]
 

Dump source file attribute to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 73 of file src/de/fub/bytecode/classfile/SourceFile.java.

final void SourceFile::dump DataOutputStream   file [inline]
 

Dump source file attribute to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 73 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

final int SourceFile::getSourceFileIndex   [inline]
 

Returns:
Index in constant pool of source file name.

Definition at line 81 of file src/de/fub/bytecode/classfile/SourceFile.java.

final int SourceFile::getSourceFileIndex   [inline]
 

Returns:
Index in constant pool of source file name.

Definition at line 81 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

Referenced by SourceFile().

final String SourceFile::getSourceFileName   [inline]
 

Returns:
Source file name.

Definition at line 85 of file src/de/fub/bytecode/classfile/SourceFile.java.

final String SourceFile::getSourceFileName   [inline]
 

Returns:
Source file name.

Definition at line 85 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

final void SourceFile::setSourceFileIndex int   sourcefile_index [inline]
 

Parameters:
sourcefile_index.  

Definition at line 93 of file src/de/fub/bytecode/classfile/SourceFile.java.

final void SourceFile::setSourceFileIndex int   sourcefile_index [inline]
 

Parameters:
sourcefile_index.  

Definition at line 93 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.

final String SourceFile::toString   [inline]
 

Returns:
String representation

Reimplemented from Attribute.

Definition at line 99 of file src/de/fub/bytecode/classfile/SourceFile.java.

final String SourceFile::toString   [inline]
 

Returns:
String representation

Reimplemented from Attribute.

Definition at line 99 of file lib/jpf/de/fub/bytecode/classfile/SourceFile.java.


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:21:53 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001