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.
34 lines
835 B
34 lines
835 B
package dev.openrs2.deob.path;
|
|
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
|
|
import dev.openrs2.asm.MemberDesc;
|
|
|
|
public abstract class ClassMetadata {
|
|
public abstract String getName();
|
|
public abstract boolean isMutable();
|
|
public abstract boolean isInterface();
|
|
public abstract ClassMetadata getSuperClass();
|
|
public abstract List<ClassMetadata> getSuperInterfaces();
|
|
public abstract List<MemberDesc> getFields();
|
|
public abstract List<MemberDesc> getMethods();
|
|
public abstract boolean isNative(MemberDesc method);
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
var that = (ClassMetadata) o;
|
|
return getName().equals(that.getName());
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(getName());
|
|
}
|
|
}
|
|
|