All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jace.parser.constant.LongConstant Maven / Gradle / Ivy

There is a newer version: 1.2.22
Show newest version
package org.jace.parser.constant;

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

public class LongConstant implements Constant
{
	private final int highByte;
	private final int lowByte;

	public LongConstant(int highByte, int lowByte)
	{
		this.highByte = highByte;
		this.lowByte = lowByte;
	}

	@Override
	public Object getValue()
	{
		return "LongConstant.getValue() has not yet been implemented.";
	}

	@Override
	public int getSize()
	{
		return 2;
	}

	@Override
	public void write(DataOutputStream output) throws IOException
	{
		output.writeByte(new LongConstantReader().getTag());
		output.writeInt(highByte);
		output.writeInt(lowByte);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy