// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) space 
// Source File Name:   FieldBuilder.java

package lt.monarch.jasm;

import java.io.DataOutputStream;
import java.io.IOException;

// Referenced classes of package lt.monarch.jasm:
//            ConstantPool

public class FieldBuilder
{

    public void setName(String s, String s1)
    {
        name = s;
        descriptor = s1;
    }

    public String getName()
    {
        return name;
    }

    public void setFlags(int i)
    {
        flags = i;
    }

    public int getFlags()
    {
        return flags;
    }

    public void writeFieldImage(DataOutputStream dataoutputstream)
        throws IOException
    {
        dataoutputstream.writeShort(flags);
        dataoutputstream.writeShort(constantPool.defineUTF8(name));
        dataoutputstream.writeShort(constantPool.defineUTF8(descriptor));
        dataoutputstream.writeShort(0);
    }

    public FieldBuilder(ConstantPool constantpool)
    {
        constantPool = constantpool;
        name = "field";
        descriptor = "Ljava/lang/Object;";
        flags = 1;
    }

    public ConstantPool constantPool;
    int flags;
    String name;
    String descriptor;
}
