01: // Copyright (c) Corporation for National Research Initiatives
02:
03: package org.python.compiler;
04:
05: import java.io.*;
06:
07: public class APIVersion extends Attribute {
08: int attName;
09: int version;
10:
11: public APIVersion(int version, ConstantPool pool)
12: throws IOException {
13: attName = pool.UTF8("org.python.APIVersion");
14: this .version = version;
15: }
16:
17: public void write(DataOutputStream stream) throws IOException {
18: stream.writeShort(attName);
19: stream.writeInt(4);
20: stream.writeInt(version);
21: }
22: }
|