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

s.java.lang.Number Maven / Gradle / Ivy

There is a newer version: 0.9.6
Show newest version
package s.java.lang;

import i.ConstantToken;
import i.IInstrumentation;
import org.aion.avm.RuntimeMethodFeeSchedule;
import s.java.io.Serializable;

public abstract class Number extends Object implements Serializable {
    static {
        // Shadow classes MUST be loaded during bootstrap phase.
        IInstrumentation.attachedThreadInstrumentation.get().bootstrapOnly();
    }

    public Number(java.lang.Void ignore, int readIndex) {
        super(ignore, readIndex);
    }

    protected Number(ConstantToken constantToken) {
        super(constantToken);
    }

    public Number(){};

    public abstract int avm_intValue();

    public abstract long avm_longValue();

    public abstract float avm_floatValue();

    public abstract double avm_doubleValue();

    public byte avm_byteValue() {
        IInstrumentation.attachedThreadInstrumentation.get().chargeEnergy(RuntimeMethodFeeSchedule.Number_avm_byteValue);
        return (byte)avm_intValue();
    }

    public short avm_shortValue() {
        IInstrumentation.attachedThreadInstrumentation.get().chargeEnergy(RuntimeMethodFeeSchedule.Number_avm_shortValue);
        return (short)avm_intValue();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy