forked from openrs2/openrs2
parent
e3baede541
commit
fc00d69539
@ -1,13 +0,0 @@ |
||||
package dev.openrs2.deob.ast.util; |
||||
|
||||
import com.github.javaparser.resolution.types.ResolvedType; |
||||
|
||||
public final class TypeUtils { |
||||
public static boolean isString(ResolvedType type) { |
||||
return type.isReferenceType() && type.asReferenceType().getQualifiedName().equals("java.lang.String"); |
||||
} |
||||
|
||||
private TypeUtils() { |
||||
/* empty */ |
||||
} |
||||
} |
@ -0,0 +1,7 @@ |
||||
package dev.openrs2.deob.ast.util |
||||
|
||||
import com.github.javaparser.resolution.types.ResolvedType |
||||
|
||||
fun ResolvedType.isString(): Boolean { |
||||
return isReferenceType && asReferenceType().qualifiedName == "java.lang.String" |
||||
} |
Loading…
Reference in new issue