public static ArrayType GetArrayType(string descriptor) { if (descriptor[0] != '[') { throw new XiVMError($"{descriptor} is not an array descriptor"); } return(new ArrayType(VariableType.GetType(descriptor.Substring(1)))); }
public static VariableType GetReturnType(string methodDescriptor) { methodDescriptor = methodDescriptor.Substring(methodDescriptor.LastIndexOf(')') + 1); return(VariableType.GetType(methodDescriptor)); }