| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.classFile.attributes.AAttributeInfo
sysModel.classFile.attributes.SourceFileAttributeInfo
public class SourceFileAttributeInfo
Represents the SourceFile attribute in a class file.
| Field Summary | 
|---|
| Fields inherited from class sysModel.classFile.attributes.AAttributeInfo | 
|---|
| _constantPool, _data, _name | 
| Constructor Summary | |
|---|---|
| SourceFileAttributeInfo(AUTFPoolInfo name,
                                               byte[] data,
                                               ConstantPool cp)Constructor. | |
| Method Summary | ||
|---|---|---|
|  void | adjustPC(short startPC,
                 short deltaPC)Adjust program counter values contained in this attribute, starting at startPC, by adding deltaPC to them. | |
|  java.lang.Object | clone()Creates and returns a copy of this object. | |
| 
 | execute(IAttributeVisitor<R,D> visitor,
               D param)Execute a visitor on this attribute. | |
| static java.lang.String | getAttributeName()Returns the name of the attribute as it appears in the class file. | |
|  AUTFPoolInfo | getSourceFileName()Return the source file name information. | |
|  void | setSourceFileName(AUTFPoolInfo newFileName)Set the source file name information. | |
|  java.lang.String | toString()Return a human-readable version of this attribute. | |
|  void | translatePC(short index,
                       short deltaIndex,
                       LineNumberTable oldLnt,
                       LineNumberTable newLnt)Translate the program counter values contained in this attribute from an old line number table to a new one. | |
| Methods inherited from class sysModel.classFile.attributes.AAttributeInfo | 
|---|
| getData, getName, lone, read, setData, setName, write | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SourceFileAttributeInfo(AUTFPoolInfo name,
                               byte[] data,
                               ConstantPool cp)
                        throws java.lang.ClassFormatError
name - attribute namedata - attribute datacp - constant pool
java.lang.ClassFormatError| Method Detail | 
|---|
public AUTFPoolInfo getSourceFileName()
                               throws java.lang.ClassFormatError
java.lang.ClassFormatErrorpublic void setSourceFileName(AUTFPoolInfo newFileName)
newFileName - constant pool
public <R,D> R execute(IAttributeVisitor<R,D> visitor,
                       D param)
execute in class AAttributeInfovisitor - visitorparam - visitor-specific parameter
public void adjustPC(short startPC,
                     short deltaPC)
adjustPC in class AAttributeInfostartPC - program counter to start atdeltaPC - change in program counter values
public void translatePC(short index,
                        short deltaIndex,
                        LineNumberTable oldLnt,
                        LineNumberTable newLnt)
translatePC in class AAttributeInfoindex - critical point (insertion or deletion point)deltaIndex - delta value to add to all old line numbers greater than the critical pointoldLnt - old line number tablenewLnt - new line number table
public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class AAttributeInfopublic static java.lang.String getAttributeName()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||