FileOutputStream zu OutputStream geändert

This commit is contained in:
JanUlrich 2014-03-24 18:01:26 +01:00
parent 157c83d9a4
commit c738e5c0de
4 changed files with 27 additions and 5 deletions

View File

@ -6,6 +6,5 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/log4j-1.2.12.jar"/> <classpathentry kind="lib" path="lib/log4j-1.2.12.jar"/>
<classpathentry kind="lib" path="lib/junit-4.0.jar"/> <classpathentry kind="lib" path="lib/junit-4.0.jar"/>
<classpathentry kind="lib" path="/Users/pl/workspaceV3_3_2/de.ba.horb.typeinference.plugin.updateSite/plugins/org.apache.log4j_1.2.15.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

View File

@ -9,8 +9,10 @@ package mycompiler.mybytecode;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.util.Vector; import java.util.Vector;
import mycompiler.myclass.ParameterList; import mycompiler.myclass.ParameterList;
import mycompiler.myclass.UsedId; import mycompiler.myclass.UsedId;
import mycompiler.MyCompiler; import mycompiler.MyCompiler;
@ -20,6 +22,7 @@ import mycompiler.mystatement.Assign;
import mycompiler.mystatement.Block; import mycompiler.mystatement.Block;
import mycompiler.mytype.Type; import mycompiler.mytype.Type;
import mycompiler.SourceFile; import mycompiler.SourceFile;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
// ino.end // ino.end
@ -804,7 +807,7 @@ public class ClassFile
// ino.end // ino.end
// ino.method.writeInt.21669.definition // ino.method.writeInt.21669.definition
public void writeInt(FileOutputStream f, int i) public void writeInt(OutputStream f, int i)
throws IOException throws IOException
// ino.end // ino.end
// ino.method.writeInt.21669.body // ino.method.writeInt.21669.body
@ -817,7 +820,7 @@ public class ClassFile
// ino.end // ino.end
// ino.method.writeShort.21672.definition // ino.method.writeShort.21672.definition
public void writeShort(FileOutputStream f, short i) public void writeShort(OutputStream f, short i)
throws IOException throws IOException
// ino.end // ino.end
// ino.method.writeShort.21672.body // ino.method.writeShort.21672.body
@ -828,7 +831,7 @@ public class ClassFile
// ino.end // ino.end
// ino.method.writeByte.21675.definition // ino.method.writeByte.21675.definition
public void writeByte(FileOutputStream f, byte i) public void writeByte(OutputStream f, byte i)
throws IOException throws IOException
// ino.end // ino.end
// ino.method.writeByte.21675.body // ino.method.writeByte.21675.body
@ -838,7 +841,7 @@ public class ClassFile
// ino.end // ino.end
// ino.method.writeByteArray.21678.definition // ino.method.writeByteArray.21678.definition
public void writeByteArray(FileOutputStream f, byte[] b) public void writeByteArray(OutputStream f, byte[] b)
throws IOException throws IOException
// ino.end // ino.end
// ino.method.writeByteArray.21678.body // ino.method.writeByteArray.21678.body

View File

@ -10,8 +10,11 @@ package mycompiler.mybytecode;
// ino.module.CodeAttribute.8532.import // ino.module.CodeAttribute.8532.import
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.util.Vector; import java.util.Vector;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import mycompiler.myexception.JVMCodeException; import mycompiler.myexception.JVMCodeException;
import mycompiler.mytype.Type; import mycompiler.mytype.Type;
// ino.end // ino.end
@ -1087,5 +1090,11 @@ public class CodeAttribute extends Attribute
} }
// ino.end // ino.end
@Override
public void codegen(ClassFile classfile, OutputStream f)
throws JVMCodeException, IOException {
throw new NotImplementedException();
}
} }
// ino.end // ino.end

View File

@ -5,7 +5,9 @@ package mycompiler.mybytecode;
// ino.module.SignatureInfo.8550.import // ino.module.SignatureInfo.8550.import
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream;
import java.util.Vector; import java.util.Vector;
import mycompiler.myclass.ParameterList; import mycompiler.myclass.ParameterList;
import mycompiler.myclass.UsedId; import mycompiler.myclass.UsedId;
import mycompiler.myexception.JVMCodeException; import mycompiler.myexception.JVMCodeException;
@ -13,9 +15,12 @@ import mycompiler.mytype.BoundedGenericTypeVar;
import mycompiler.mytype.GenericTypeVar; import mycompiler.mytype.GenericTypeVar;
import mycompiler.mytype.RefType; import mycompiler.mytype.RefType;
import mycompiler.mytype.Type; import mycompiler.mytype.Type;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
// ino.end // ino.end
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
// ino.class.SignatureInfo.22968.description type=javadoc // ino.class.SignatureInfo.22968.description type=javadoc
/** /**
* Generiert die Attribute eines Fields, einer Methode oder einer Klasse/Interface * Generiert die Attribute eines Fields, einer Methode oder einer Klasse/Interface
@ -258,5 +263,11 @@ public class SignatureInfo extends Attribute
} }
// ino.end // ino.end
@Override
public void codegen(ClassFile classfile, OutputStream f)
throws JVMCodeException, IOException {
throw new NotImplementedException();
}
} }
// ino.end // ino.end