Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
643 B
18 lines
643 B
4 years ago
|
package org.openrs2.deob.bytecode.analysis
|
||
5 years ago
|
|
||
|
import org.objectweb.asm.tree.AbstractInsnNode
|
||
|
import org.objectweb.asm.tree.analysis.BasicValue
|
||
|
import org.objectweb.asm.tree.analysis.Value
|
||
|
|
||
4 years ago
|
public sealed class ConstSourceValue : Value {
|
||
|
public data class Unknown(override val basicValue: BasicValue) : ConstSourceValue()
|
||
|
public data class Insn(override val basicValue: BasicValue, val source: AbstractInsnNode) : ConstSourceValue()
|
||
|
public data class Arg(override val basicValue: BasicValue) : ConstSourceValue()
|
||
5 years ago
|
|
||
4 years ago
|
public abstract val basicValue: BasicValue
|
||
5 years ago
|
|
||
|
override fun getSize(): Int {
|
||
|
return basicValue.size
|
||
|
}
|
||
|
}
|