com.jeffpalm.basic.bytecode.base
Class SourceFileAttribute

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.base.SourceFileAttribute
All Implemented Interfaces:
IAttribute, ICodeGenerator, ISourceFileAttribute, IDumpable

public final class SourceFileAttribute
extends java.lang.Object
implements ISourceFileAttribute


Constructor Summary
SourceFileAttribute(IConstantPool pool, java.lang.String sourceFile)
           
 
Method Summary
 void dump(IAppendable out)
           
protected  void dumpRest(IAppendable out)
           
 void gen(ICodeStream code)
           
protected  void genRest(ICodeStream code)
           
 int length()
           
 java.lang.String name()
           
 IConstantPool pool()
           
 java.lang.String sourceFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jeffpalm.basic.bytecode.IAttribute
name, pool
 
Methods inherited from interface com.jeffpalm.basic.util.IDumpable
dump
 
Methods inherited from interface com.jeffpalm.basic.bytecode.ICodeGenerator
gen
 

Constructor Detail

SourceFileAttribute

public SourceFileAttribute(IConstantPool pool,
                           java.lang.String sourceFile)
Method Detail

sourceFile

public java.lang.String sourceFile()
Specified by:
sourceFile in interface ISourceFileAttribute

length

public int length()
Specified by:
length in interface IAttribute

genRest

protected void genRest(ICodeStream code)
                throws java.io.IOException
Throws:
java.io.IOException

dumpRest

protected void dumpRest(IAppendable out)

pool

public final IConstantPool pool()
Specified by:
pool in interface IAttribute

name

public final java.lang.String name()
Specified by:
name in interface IAttribute

gen

public final void gen(ICodeStream code)
               throws java.io.IOException
Specified by:
gen in interface ICodeGenerator
Throws:
java.io.IOException

dump

public final void dump(IAppendable out)
Specified by:
dump in interface IDumpable