com.dragome.compiler.units.FieldUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-bytecode-js-compiler Show documentation
Show all versions of dragome-bytecode-js-compiler Show documentation
Dragome SDK module: bytecode to javascript compiler
package com.dragome.compiler.units;
import java.io.IOException;
import java.io.Writer;
import com.dragome.compiler.type.Signature;
import com.dragome.compiler.utils.Log;
public class FieldUnit extends MemberUnit
{
public FieldUnit(Signature theSignature, ClassUnit theDeclaringClazz)
{
super(theSignature, theDeclaringClazz);
}
public void write(int depth, Writer writer) throws IOException
{
if (getData() == null)
return;
Log.getLogger().debug(getIndent(depth) + getSignature());
writer.write(getData());
}
}