SourceFile.java :  » Testing » Marathon » org » python » compiler » Java Open Source

Java Open Source » Testing » Marathon 
Marathon » org » python » compiler » SourceFile.java
// Copyright (c) Corporation for National Research Initiatives

package org.python.compiler;
import java.io.*;

public class SourceFile extends Attribute {
    int attName;
    int filename;

    public SourceFile(String name, ConstantPool pool) throws IOException {
        attName = pool.UTF8("SourceFile");
        filename = pool.UTF8(name);
    }

    public void write(DataOutputStream stream) throws IOException {
        stream.writeShort(attName);
        stream.writeInt(2);
        stream.writeShort(filename);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.